Page 1 of 1

Switch (swap) Image Fixed only one size - My solution

Posted: 17 Apr 2012, 17:18
by smARTe
- Phoca Gallery for Joomla! v.1.5 -

I like "Switch (swap) Image" feature in Phoca gallery but I need to reduce the height of images maintaining the ratio.
I've modified php file in order to have the possibility to define separately the width and the height of the "Switch Image".
If one dimension is defined as zero (= "0"), the image is rescaled and not stretched.
For example:
Original image 640x480 px
- Switch Image = Yes
- Switch Image Width = 0
- Switch Image Height = 360
- Switch Fixed Size = Yes
Image is displayed as 480x360 px

If you are interested I can send you the modified php. Where I can send it?

Re: Switch (swap) Image Fixed only one size - My solution

Posted: 19 Apr 2012, 17:33
by Jan
Hi, will be great if you can paste the modifications here in the forum.

Thank you, Jan

Re: Switch (swap) Image Fixed only one size - My solution

Posted: 17 Sep 2012, 00:04
by komsomolec
Please, post your PHP file, at leas send me a link to it via PM.

Re: Switch (swap) Image Fixed only one size - My solution

Posted: 24 Mar 2015, 19:14
by lucas3001
I am interested in the code too.
could you please post it here?