Forums

Image Resize

PowerOfChronoform 01 Mar, 2015
Hello sir ,

I have image field , I want three version of the image , one is in its Original size , secondly custom medium size , thirdly thumbnail size .

in other words , I have to resize the original image to 2 different custom size image along with retaining the original image .

Please help me sir in this.

Platform details :

Product name/version - Chronofroms V5

System version - Joomla 3.2


Thank you .
GreyHead 02 Mar, 2015
Hi PowerOfChronoform,

There isn't a Image ReSizer action for CFv5 yet - I think that Max has it on his to-do list, but the list is probably quite long.

You could ask him using the Contact Us menu above to see if he has anything you could test.

Bob
PowerOfChronoform 02 Mar, 2015
sir , very simple it is , just few code of chunks to be needed to add to the chronoform package ,

here is the code ,
$image = new JImage(JPATH_ADMINISTRATOR . '/components/com_sage//escomid/' . $filename);
$sizes = array('300x300', '64x64', '250x125');
$image->createThumbs($sizes, JImage::SCALE_INSIDE);	
otherwise , we need to use Joomla 2.5 and v4 right sir ?
Thanks . .
GreyHead 02 Mar, 2015
Hi PowerOfChronoform,

If that code works then you can add it to a Custom Code action in your form On Submit event. Put it after the Upload Files action so you can access the file path.

Bob
This topic is locked and no more replies can be posted.