A
A
Alexander Sinitsyn2018-10-16 17:31:50
Images
Alexander Sinitsyn, 2018-10-16 17:31:50

What settings do you use to compress images so that PageSpeed ​​falls behind them?

Now I have and Google swears at every file.

$imagick->setImageCompression(Imagick::COMPRESSION_JPEG);
        $imagick->setImageCompressionQuality(75);

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
Serj-One, 2018-10-16
@Serj-One

TinyPng
https://github.com/bigbrush/yii2-tinypng
https://tinypng.com/developers/reference/php

V
V_Holmow, 2018-10-17
@V_Holmow

If .jpg then I compress the jpeg compressor to 80% to a maximum of 75%. Then do not swear.
But you need to look at each separately, because. artifacts may come out, and one photo may not swear at 85%, while the other will stop only at 75%.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question