How to remove the white background in the image using PHP?
There are a lot of images on the site - I want to optimize the amount of files.
I want to do the following things:
- How do I remove the white background in an image using the gd library?
- How do I crop a photo at the edges of the image so that there are no extra areas, so to speak, but only the working area?
1
Author: Nicolas Chabanovsky, 2014-11-17
1 answers
You can find information about color removal and cropping here https://php.net/manual/en/function.imagecropauto.php
About the resize, which will also help a lot to reduce the size of the image file-here http://php5.ru/articles/image#size
1
Author: Get, 2014-11-17 17:57:09