- 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?
Switch (swap) Image Fixed only one size - My solution
-
- Phoca Newbie
- Posts: 2
- Joined: 17 Apr 2012, 16:50
- Jan
- Phoca Hero
- Posts: 48402
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Switch (swap) Image Fixed only one size - My solution
Hi, will be great if you can paste the modifications here in the forum.
Thank you, Jan
Thank you, Jan
If you find Phoca extensions useful, please support the project
-
- Phoca Newbie
- Posts: 1
- Joined: 16 Sep 2012, 23:58
Re: Switch (swap) Image Fixed only one size - My solution
Please, post your PHP file, at leas send me a link to it via PM.
-
- Phoca Member
- Posts: 43
- Joined: 10 Feb 2015, 15:44
Re: Switch (swap) Image Fixed only one size - My solution
I am interested in the code too.
could you please post it here?
could you please post it here?