I am developing application where I need to crop the empty part (white part) of the image to move it left. The picture format is JPEG and only 2 colors are used: white (background) and black (signature). Please see for below for a sample. How to do this on PHP?
Asked
Active
Viewed 58 times
0

Vasiliy Tsiganov
- 17
- 3
-
If you want the image to stay the same size you'll need to extend the height and width back to the original values, but that should be a much easier problem to solve – iainn Nov 03 '21 at 14:18
-
1The main question is how to crop that white part of the image. – Vasiliy Tsiganov Nov 03 '21 at 14:21
-
Then the suggested duplicate about cropping whitespace should be everything you need – iainn Nov 03 '21 at 14:23