B
B
Billy Milligan2013-12-10 14:52:06
PHP
Billy Milligan, 2013-12-10 14:52:06

How to correctly reduce the size and weight of the image?

There is a photo 500x334, 56.4 KB to reduce the size, I use this class
$image->resizeImage(368, 200, "crop");
, I get a photo 368x200, 68.7 KB, the goal was to reduce the size, to reduce weight, I'm sure for images with a higher resolution it will be relevant.
This is fine?
Please advise any other solutions. It is possible to use GD and ImageMagick.
I stumbled upon imagine , what is it good for and will it change things?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
E
Eugene Mosyukov, 2013-12-10
@Billy_Milligan

In the class used, most likely, it is possible to specify the quality (compression ratio, compression, quality) of the picture. And you, for sure, use 100% by default, try reducing it to 85%.
In general, you need to save the image with more compression.

N
Nikita Baev, 2013-12-10
@drugoi

I would try using imgo

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question