2

I have my product images optimized very well, but magento cached images are very poor and larger (already cleared cache, it's what magento is doing to the optimized images which is making them larger). I have tried Kraken.io's plugin but it's so resource hungry and slows down page load for some reason on the front end more than it's worth because it is auto-optimizing images. Is there an alternative extension out there that will let me just optimize the cached images once in a while? I'd prefer Kraken's API as I already have a (paid) account with them, but I don't want anything automated, I'd rather do that myself when the website is not busy to reduce server load. Alternatively, would there be any issues with just downloading the cached directory now and again, optimizing it and re-uploading it to the server?

  • i wont suggest it. It would be better to assign optimized images initially. Then in category page and detail page, check the size of the layout, and you could code to call resized images like resize(135). Also certain modules are available. check those. – Shyam Krishna Sreekumar Oct 26 '16 at 5:50
1

you can try this solution

1. Try TinyPNG's Extension for magento

https://www.magentocommerce.com/magento-connect/compress-jpeg-png-images.html

The plugin compress images well enough (Try there compression engine https://tinypng.com/), When you view a product in your webshop Magento creates different image sizes in its cache folders. This extension will compress these images for you automatically. since it work while creating cache it can slow the page if there are lot of products on the page, this happen only when cache is create otherwise the website will work as normal.

2. You can set Image quality while creating cache.

<img src="<?php echo $this->helper('catalog/image')->init($_product, 'small_image')->resize(195, 280); ?>" />

to

<img src="<?php echo $this->helper('catalog/image')->init($_product, 'small_image')->resize(195, 280)->setQuality(70); ?>" />

we have set the quality setQuality(70) of the cache image that is generating lower the quality , lower the file size. just set the quality that best suits you.

  • 1
    Thanks for this. The image quality for compressing the images helped. Tiny PNG, I am a huge fan of them, however, I soon noticed their cost potential go up with the plan. I have 4890 products so multiply out all those thumbnails etc and it soon goes into the $100's. The free allowance of 500 was gone in about 15 minutes of testing and observations! I also got delays in page load of about the same as the extra time it takes for a page to load with images that can be optimized 25% further so it turned out not worth it. Maybe better for others with less images! – Jaimie Dijstra Oct 31 '16 at 1:33
2

You can use the following plugin which uses cron job to compress your Magento catalog images instead of doing on the fly which could slow down your website. In the admin configuration you can define how many product images you want to optimize or compress the images. It also support multiple APIs including Kraken API.

https://www.scommerce-mage.com/magento-image-optimizer.html

Hope it helps!

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.