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

smARTe
Phoca Newbie
Phoca Newbie
Posts: 2
Joined: 17 Apr 2012, 16:50

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

Post by smARTe » 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?

User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 42718
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

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

Post by Jan » 19 Apr 2012, 17:33

Hi, will be great if you can paste the modifications here in the forum.

Thank you, Jan
If you find Phoca extensions useful, please support the project

komsomolec
Phoca Newbie
Phoca Newbie
Posts: 1
Joined: 16 Sep 2012, 23:58

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

Post by komsomolec » 17 Sep 2012, 00:04

Please, post your PHP file, at leas send me a link to it via PM.

lucas3001
Phoca Member
Phoca Member
Posts: 43
Joined: 10 Feb 2015, 15:44

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

Post by lucas3001 » 24 Mar 2015, 19:14

I am interested in the code too.
could you please post it here?

Post Reply