Keyword

Image size overrides not working

  • MuffinDCC
  • MuffinDCC's Avatar Topic Author
  • Offline
  • New Member
More
15 years 3 months ago #68318 by MuffinDCC
Image size overrides not working was created by MuffinDCC
I have the following settings in my main parameters, as well as in the category parameters: www.muffindcc.com/Skitch/k2-admin-20090627-131120.jpg

Essentially, the XLarge images are 650px in the params but are defaulting to 800px. I have gone through every option available and it will not change for me.

Similarly, the individual image overrides do not seem to function either, they do not save for me.

Please Log in or Create an account to join the conversation.

More
15 years 3 months ago #68319 by Lefteris
Replied by Lefteris on topic Image size overrides not working
Hi there. In order to get the image size overrides work you have to first set the params and then upload your image. The change of these settings cannot be applied in existing images. If this is not your case please post some more info about the issue.

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

Please Log in or Create an account to join the conversation.

More
15 years 3 months ago #68320 by Vassilis
Replied by Vassilis on topic Image size overrides not working
i am having the same problem.
I am using 1.5.11 Joomla.
I had first change the parameters for the image from 800 witch was the default to 440 and from 180 for thumbs to 120 and still every image (new) i upload uses the defaults sizes :/
It will be great to have a solution for this.

Please Log in or Create an account to join the conversation.

More
15 years 3 months ago #68321 by Lefteris
Replied by Lefteris on topic Image size overrides not working
There are also image settings in the category edit form in "Category view options". These settings override the global settings of the component. Try to set the desired image dimensions in the category edit form and then add an image to an item that belongs to this category. Please let me know if that works for you.

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

Please Log in or Create an account to join the conversation.

More
15 years 3 months ago #68322 by JoomlaWorks
Replied by JoomlaWorks on topic Image size overrides not working
"Similarly, the individual image overrides do not seem to function either, they do not save for me."

The individual image overrides will be removed in v2 "final" because they don't have a practical use.

Fotis / JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

Please Log in or Create an account to join the conversation.

  • Animation Salvation
  • Animation Salvation's Avatar
  • Offline
  • New Member
More
14 years 5 months ago #68323 by Animation Salvation
Replied by Animation Salvation on topic Image size overrides not working
Is there a way to have 2 different sizes for Category images?

I.E. -
In my category listings, I want 2 columns of Categories, so my images should be 350px wide.
When I click on the category, the Image should then become 750px wide (I'm using it as a header-type of image)

Currently it only makes the images the size I set in the main settings. So even when I display 2 columns of Categories, the images are twice as wide as the column.

Please Log in or Create an account to join the conversation.

More
14 years 2 months ago #68324 by Ron Farber
Replied by Ron Farber on topic Image size overrides not working
I too, have been searching for DAYS to no avail for this.

I have a Joomla Link (K2 CATEGORY) and I show the intro text for several articles and want a small or medium sized image in this listing. I choose that in the parameters of the LINK (you can get here by editing this MENU item). There I can specify LEADING ITEMS, etc...

I want medium or small images in this listing, and I want pagination so this is the option for me.

But the images in the output are all SYSTEM DEFAULT LARGE (set in global parameters at 600). It does not use LARGE specified at this category level (500), and it does not use the MEDIUM (300) I am choosing in the MENU ITEM which gives me K2 parameter options either.

All of these things work perfectly when defining the image size in the MENU ITEM for a "LATEST ITEMS", but they do not work at all when listing all items in a category. I want the listing to show a medium image with intro text, then in the actual item view when someone clicks "read more" I want it what is set for default in that category item view (LARGE).

Can anyone help? It looks like they designed K2 to work exactly as I am specifying as it works great with the latest stuff, but it doesnt work when I want all category items with pagination.

Please Log in or Create an account to join the conversation.

More
13 years 3 months ago #68325 by Jed
Replied by Jed on topic Image size overrides not working
Hi,

Is there a solution for this?  I have a k2 blog (on localhost) and want the first three entries to come up on the home page with a little bit of text.  I get the text and the "read more", but not the image (it shows an image placeholder).  I copied what I wanted it to look like from the Main Content HTML Template from an ARTICLE, but the images do not show up.  I am assuming I need to do something with the <img src= {introimage}> line, but I don't know what. 

I don't know much code at all...self taught on an as needed basis.  

 

<div class="projects_fp"><div class="box_14"><img src="{introimage}"></div><a href="{link}"><h4 style="padding:16px 6px 9px 0; font-size:20px;" class="newstitle">{title}</h4></a><p style="color:#777; font-size:12px; margin-top:4px;">{introtext}</p><div class="readmore"><a href="{link}"> <p> Read More </p> </a></div></div>

 

Thank you.

Please Log in or Create an account to join the conversation.

More
13 years 1 week ago #68326 by Willie
Replied by Willie on topic Image size overrides not working
Hi, this should work:

 

On the category_item.php of your template override, add this (the last 2 line are repeated for your reference):

 

$menuitemid = JRequest::getInt( 'Itemid' );
if ($menuitemid) {
$menu = JSite::getMenu();
$menuparams = $menu->getParams( $menuitemid );
$this->item->params->merge( $menuparams );
}

// Define default image size (do not change)
K2HelperUtilities::setDefaultImage($this->item, 'itemlist', $this->item->params);

Please Log in or Create an account to join the conversation.


Powered by Kunena Forum