GD

Trim an image using PHP and GD

I was looking for a way to trim images with the GD library. So I made a function to do just that. The function, which I only naturally called imagetrim(), trims a image much like Photoshop's trim feature. Additionally, you may add padding too if desired.

Syndicate content