I
I
i_want_to_know_everything2017-03-21 21:31:40
PHP
i_want_to_know_everything, 2017-03-21 21:31:40

Image optimization via imagejpeg?

there are all sorts
of console jpegtran, jpegoptim
there are
all sorts of external kraken and others,
but you can do this
imagejpeg($img, $new_img, $quality);
. At the output, it seems like a progressive jpeg and much smaller than the original, and Google stops cursing.
Are there any pitfalls in the case of imagejpeg?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dimonchik, 2017-03-21
@i_want_to_know_everything

Well, what underwater? there is no difference than to compress
, yes, jpegtran compresses everything as much as possible, but sometimes it is enough to set a lower quality to achieve the desired weight

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question