U
U
uurg2020-10-29 20:48:27
PHP
uurg, 2020-10-29 20:48:27

PHP image compression?

Good evening!
There is the following question, what are the types of image compression in PHP and how to do it correctly?

There is a site where a large number of images are loaded, which are displayed in front of the user in the form of a tile. And since the tile size is small, and there are a decent number of images, I would like to compress / minimize them. The site uses CodeIgniter, so the Compress

library is currently used , but there are some disadvantages, for example: images are flipped and the resolution cannot be changed (perhaps due to my inexperience, I could not implement this here). If anyone knows how to minify and modify images using PHP, perhaps in the form of a library for CodeIgniter, I would be happy to help.


Maybe I'm not right at all about using PHP in this case and it's worth using JS for these tasks, I'll take into account any options.

Thanks in advance

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question