D
D
Denis Bukreev2016-07-04 02:36:14
Google
Denis Bukreev, 2016-07-04 02:36:14

Is it possible to use google image optimizer?

Good day.
Everyone probably knows that Google compresses images perfectly without quality loss and distributes them for free when checking their site on Google PageSpeed .
But is it possible to use their optimizer somehow separately?
It is somehow stupid to upload files to the server for the sake of compressing images, stick a link to Google PageSpeed , then download the images, then shove them into folders / upload them back to the server.
Neither Photoshop nor any online services give me such a quality of optimization (which I just haven’t tried - everything breaks the quality a little, while the optimization is minimal).

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexey Yarkov, 2016-07-04
@denisbookreev

habrahabr.ru
Google has worked hard and released a module for Ngnix and Apache to improve site performance. It increases the download speed by optimizing all sorts of parameters , including pictures. It works automatically, you only need to install and enable it:

pagespeed on;
pagespeed FileCachePath /var/cache/nginx;

The module does everything itself - it parses HTML and optimizes resources. For example, it compresses pictures or minifies statics. In the page sources, all optimized resources will have a different path.
After optimization, PageSpeed ​​saves the file to a new path. But what about photos rendered via JavaScript? Or with links to your photos on third-party resources? This is where IPRO comes to the rescue - optimizing resources without leaving the checkout, or rather without changing the URL.
To do this, just include the following instructions in the config (for Nginx):
Use PageSpeed ​​to find problems with graphics on the site.
If there are a lot of graphics, use server tools for optimization: jpegtran, jpegoptim, ImageMagick, pngquant, pngcrush.
Cloud tools for one-time tasks and API connections: JPEGmini, tinyPNG, i.onthe.io/google_speed .
The PageSpeed ​​module for Nginx/Apache will do all the optimization itself, but it needs to be compiled.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question