I want to mimic the trim behavior of Photoshop (crop the area that is covered by the same color on all sides) with GD and PHP but I'm lacking ideas on how to accomplish this.
If someone has any idea on how to do this I would very much like to hear it.
Thanks in advance.