Name

Trim( ) — remove background color from edges of image

Synopsis

$image->Trim()

Trim( ) crops a rectangular box around the image to remove edges that are the background color.

Get Programming Web Graphics with Perl and GNU Softwar now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.