PrestaShop | Default Image Size

How to change the default image size on product images.

Couldn’t find a way to do this through the admin interface, the db stored the image width/height for the “small” and “large” versions but doesn’t let you control resizing the original image that gets uploaded and displayed when you click on the “large” product thumbnail.

Edit /shop/youradmin/tabs/AdminProducts.php

Line 411:

 if (!imageResize($_FILES[‘image_product’], _PS_IMG_DIR_.’p/’.$id_product.’-‘.$id_image.’.jpg’))

Change it to:

 if (!imageResize($_FILES[‘image_product’], _PS_IMG_DIR_.’p/’.$id_product.’-‘.$id_image.’.jpg’,640,480))

Leave a Reply

Your email address will not be published. Required fields are marked *