Switch (swap) Image Fixed only one size - My solution
Posted: 17 Apr 2012, 17:18
- 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?
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?