Jump to content

Reducing size of uploaded images (saving host space)


Recommended Posts

Hi everyone, I believe this is rather simple, but I seem to be struggling.

 

Most pictures that are uploaded to my site (and I am sure this applies to other prestashop users) are photographed using a high resolution camera; but as the max image size displayed is 600x600px; it means that upload is slow and the image uses a high volume of unnecessary host space.

 

**I would like the uploaded image to be reduced to 600x600px.**

 

I can not think of a method to reduce upload speed (without creating a photo editing module, which be be great!!) but I have thought of a way to reduce host storage space.

 

1. After uploading an image, use the same re-size method that 'thickbox' uses (without the watermark) and save over current 'master image'.

 

Unfortunately, I can not find the method that prestashop uses to achieve size manipulation (without distortion). And I am not too sure where to add the code.

 

It should be something like:

$image.jpg = image.jpg * reduced size

 

 

 

Perhaps someone here has a suggestion?

 

 

 

 

 

 

Please do not suggest to change 'maxImageSize' as this would only limit the file able to upload and not re-size it.

 

 

Thank you

 

Mike - http://DovJudaica.com

 

p.s. A photo editing module would be fantastic! It would mean users can crop their images (so that they are square) before uploading!

Link to comment
Share on other sites

Hi everyone,

 

I am still working on this feature!

For the time being, if someone else is having this issue, I have been recommended (by prestashop support) you use:

http://www.rw-designer.com/picture-resize

 

It is a brilliant resizing application!

 

If some [spam-filter] can help me add a line of code to resize an image before the watermark is added I would be extremely greatful!

 

Thank you

 

Mike - Dov Judaica

Link to comment
Share on other sites

×
×
  • Create New...