Quantcast
Channel: Nginx Forum - How to...
Viewing all articles
Browse latest Browse all 4759

Optimize images made by image_filter

$
0
0
Hello guys,

I'm trying to optimize page speed of my website. When I test my website using Google's Pagespeed Insights tool it shows me that my images can be optimized by 20-50%, and it points to the images created by nginx' image_filter. I store these images in cache on a hard drive. However, these cache files have an unusual format which doesn't allow me to optimize them using, for example, jpegoptim tool. I want a lossless optimization, of course.

What could I do in this case? Is there any way to grab images from cache, optimize them and put them back to cache? Or maybe add some sort of "post hook" for any image which has been created by nginx?

Any ideas are welcomed!

Viewing all articles
Browse latest Browse all 4759

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>