Keyword

[SOLVED] K2 Generic Image width

  • Michelangelo
  • Michelangelo's Avatar Topic Author
  • Offline
  • New Member
More
11 years 4 months ago #112939 by Michelangelo
[SOLVED] K2 Generic Image width was created by Michelangelo
Hello, I'm trying to change the size of the generic image in k2, but it doesn't work. The standard width was 300px, I set 400 but it still resizes new images at 300. I have no width overrides in my categories. It worked when I changed width of XL and L images, but with the generic it just doesn't want to work...
The topic has been locked.
  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
11 years 4 months ago #112940 by Krikor Boghossian
Replied by Krikor Boghossian on topic Re: K2 Generic Image width
Hello Michelangelo,

What version of K2 are you using?

Are you using any template overrides?

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
The topic has been locked.
  • Michelangelo
  • Michelangelo's Avatar Topic Author
  • Offline
  • New Member
More
11 years 4 months ago #112941 by Michelangelo
Replied by Michelangelo on topic Re: K2 Generic Image width
Hello Krikor, I'm using v 2.6.5 with the overrides of Joomlart MixMaz. You can see the website here
Thanks
The topic has been locked.
  • Michelangelo
  • Michelangelo's Avatar Topic Author
  • Offline
  • New Member
More
11 years 4 months ago #112942 by Michelangelo
Replied by Michelangelo on topic Re: K2 Generic Image width
At the moment I solved changing the size of the "small" image and setting my homepage modules to use the small instead of generic. But maybe this is a bug, why setting the size of small image works and for the generic one not?
The topic has been locked.
  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
11 years 4 months ago #112943 by Krikor Boghossian
Replied by Krikor Boghossian on topic Re: K2 Generic Image width
Michelangelo, I think some extension is causing your issue. By default K2 content module does not render the generic sized images just the XS, S, M, L.. sizes.

The generic size is only used in date and search listings. You can check if it's an issue with your template by simply using the ?template=system at the end of your URLs and browsing your site with the system(default) template.

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
The topic has been locked.
  • Michelangelo
  • Michelangelo's Avatar Topic Author
  • Offline
  • New Member
More
11 years 4 months ago #112944 by Michelangelo
Replied by Michelangelo on topic Re: K2 Generic Image width
Yes, in fact I don't need to change how's rendered, but how the file is resized. For example this jpg file's been resized at a width of 300px, although I set it to 400 px. Thanks for your help
The topic has been locked.
  • Yiota
  • Yiota's Avatar
  • Visitor
11 years 4 months ago #112945 by Yiota
Replied by Yiota on topic Re: K2 Generic Image width
If the image was uploaded before the size changed in the parameters, the image will remain in 300px and will be resized to 400px with HTML resize (if not altered).
In order for your image to actually take the 400px size you will have to re-upload the image.
The topic has been locked.
  • Michelangelo
  • Michelangelo's Avatar Topic Author
  • Offline
  • New Member
More
11 years 4 months ago #112946 by Michelangelo
Replied by Michelangelo on topic Re: K2 Generic Image width
Yes, I uploaded that today and K2 "accepted" my settings for the small image at 400px (you can see it here ), but it just doesn't see my settings for the generic one. i hope I'm not taking away too much of your time, as for the moment I solved using the small images, but if this is really a bug it could be useful for you to know.
The topic has been locked.
  • Yiota
  • Yiota's Avatar
  • Visitor
11 years 4 months ago #112947 by Yiota
Replied by Yiota on topic Re: K2 Generic Image width
As Krikor said:

Krikor Boghossian wrote: The generic size is only used in date and search listings. You can check if it's an issue with your template by simply using the ?template=system at the end of your URLs and browsing your site with the system(default) template.


Are these views the ones that your generic image size doesn't render?
The topic has been locked.
  • Michelangelo
  • Michelangelo's Avatar Topic Author
  • Offline
  • New Member
More
11 years 4 months ago #112948 by Michelangelo
Replied by Michelangelo on topic Re: K2 Generic Image width
No, it's the module JA Side News which crops the generic image. Those 4 square images in my homepage are generated by Ja Side News, and have a height of 240px. But if the generic image width is just of 300px it often happens that the height is under 240px, so they're not square anymore and they have a black space below them. But now I edited the code of the module, so that it uses the small image instead of generic.
The topic has been locked.

Powered by Kunena Forum