We have over 1000 images on our website that are JPG and PNG and over a 100kb, we want to compress these images somehow, Manually will be a long process. Is there another way of doing this? cant find an extension for this purpose? any ideas?. using OC 2.3.0.2
We have code that does this to WebP, but it's not an extension because it's very dependent on the web server software. Feel free to get in touch if you'd like an estimate for applying it to your site: info@antropy.co.ukAfrofunk wrote: ↑Wed Jun 07, 2023 7:26 pmWe have over 1000 images on our website that are JPG and PNG and over a 100kb, we want to compress these images somehow, Manually will be a long process. Is there another way of doing this? cant find an extension for this purpose? any ideas?. using OC 2.3.0.2
UK OpenCart Hosting | OpenCart Audits | OpenCart Support - please email info@antropy.co.uk
Do a Google search for "batch image compress", there are a number of tools which allow you to compress whole batches of images in one go.
Export/Import Tool * SpamBot Buster * Unused Images Manager * Instant Option Price Calculator * Number Option * Google Tag Manager * Survey Plus * OpenTwig
HI!
You can use server software (jpegoptim/optipng/etc) via SSH. Like this:
You can use server software (jpegoptim/optipng/etc) via SSH. Like this:
Code: Select all
find /var/www -name "*.jpg" -type f -exec jpegoptim {} \;
Code: Select all
find /var/www -name "*.png" -type f -exec optipng {} \;
Last edited by halfhope on Thu Jul 06, 2023 4:41 am, edited 1 time in total.
My extensions in marketplace. [ security | flexibility | speedup ]
system\library\image.php
Reupload image/catalog folder for new cache
Code: Select all
public function save($file, $quality = 70)
Business Web Development | Content Creation | Analytics and Reporting | SEO
Who is online
Users browsing this forum: No registered users and 112 guests