Page 1 of 1

OC 2.3.0.2 - a lot of big images

Posted: Tue Sep 27, 2022 2:12 am
by Renecek
Hi,
just found my client has a lot of images in his opencart. There is 17GB of images in his FTP.

Can you recommend me steps to fix that? Maybe some "smush" plugin?
Thank you
/image/
0 ./categories
0 ./manufacturers
0 ./rma
4.0K ./modules
200K ./kbsupercheckout
316K ./payment
432K ./data
1.3M ./options
2.3M ./promo
13M ./common
32M ./iproductvideo
360M ./catalog
3.7G ./cache
17G ./products
21G .

Re: OC 2.3.0.2 - a lot of big images

Posted: Tue Sep 27, 2022 2:34 am
by johnp

Re: OC 2.3.0.2 - a lot of big images

Posted: Tue Sep 27, 2022 4:37 am
by IP_CAM
or then do it online with this one:
https://www.picdiet.com/

Re: OC 2.3.0.2 - a lot of big images

Posted: Tue Sep 27, 2022 3:11 pm
by Renecek
IP_CAM wrote:
Tue Sep 27, 2022 4:37 am
or then do it online with this one:
https://www.picdiet.com/
How? I need download all images from FTP, compress them and upload them back to FTP?

Re: OC 2.3.0.2 - a lot of big images

Posted: Tue Sep 27, 2022 4:02 pm
by IP_CAM
That's correct. ;) You also have to remove all cached images, to get them created again after uploading the modified images.

Re: OC 2.3.0.2 - a lot of big images

Posted: Tue Sep 27, 2022 7:10 pm
by paulfeakins
Renecek wrote:
Tue Sep 27, 2022 3:11 pm
How? I need download all images from FTP, compress them and upload them back to FTP?
Or if you have SSH access and can write a simple bash command you could use:

Code: Select all

magick source.jpg -strip -interlace Plane -gaussian-blur 0.05 -quality 85% result.jpg
https://stackoverflow.com/questions/726 ... magemagick