Keyword

[SOLVED] K2 Generic Image width

  • Michelangelo
  • Michelangelo's Avatar Topic Author
  • Offline
  • New Member
More
12 years 6 days 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
12 years 5 days 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?
The topic has been locked.
  • Michelangelo
  • Michelangelo's Avatar Topic Author
  • Offline
  • New Member
More
11 years 11 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 11 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 11 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.
The topic has been locked.
  • Michelangelo
  • Michelangelo's Avatar Topic Author
  • Offline
  • New Member
More
11 years 11 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 11 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 11 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 11 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 11 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.
  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
11 years 11 months ago #112949 by Krikor Boghossian
Replied by Krikor Boghossian on topic Re: K2 Generic Image width
This is a custom built module and not a K2 module which was not developed by us. You have to ask it's developer for support.
The topic has been locked.
  • Michelangelo
  • Michelangelo's Avatar Topic Author
  • Offline
  • New Member
More
11 years 11 months ago #112950 by Michelangelo
Replied by Michelangelo on topic Re: K2 Generic Image width
You know, I don't need anymore this feature of K2 working (yes, K2, because Ja side news does exactly what it's expected to do), I'm just telling this because maybe you want to keep your software bug-free, that's all. You can also mark this thread as solved.
The topic has been locked.
More
8 years 9 months ago #156848 by Angus Chen
Replied by Angus Chen on topic Re: K2 Generic Image width
I got the same issue.

I edit the file of JA Slideshow , and finally got the larger size of image I want.

at the line 406 of /helpers/helper.php
                        //return $arrImages['imageGeneric'];
			$row->mainImage = str_replace(JURI::base(), '', $arrImages['imageGeneric']);
			$row->thumbnail = str_replace(JURI::base(), '', $arrImages['imageGeneric']);

to
			//return $arrImages['imageGeneric'];
			$row->mainImage = str_replace(JURI::base(), '', $arrImages['imageXLarge']);
			$row->thumbnail = str_replace(JURI::base(), '', $arrImages['imageGeneric']);
The topic has been locked.
  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
8 years 8 months ago #157018 by Krikor Boghossian
Replied by Krikor Boghossian on topic Re: K2 Generic Image width
Hello and kudos on finding the solution,

I think you need to post this at JA's forums as well, since these modules are not related to K2.
The topic has been locked.

Powered by Kunena Forum