Hi,
I'm currently working on a product page. And I want to show images of my product in another size than the one I defined in my configuration.
I have done this chunk of code, but I don't think it was the best way to do that :
$image = hikashop::get('helper.image');
$size = getimagesize($image->uploadFolder.$p->images[0]->file_path);
$image->width = $size[0];
$image->height = $size[1];
$image->_resizeImage($p->images[0]->file_path,$resize,$resize/$size[0]*$size[1],$dstFolder,"image");
Is there a better way to do that ?
I didn't found a function to do that in a simpler way.
Thanks for your answers.