Name

filter — image resize filter

Synopsis

$image->Set(filter=>string)
$image->Get('filter')

The filter attribute allows you to specify the filtering scheme used by the Zoom( ) or Transform( ) method when resizing an image. The value of string can be:

Point
Hamming
Catrom
Box
Blackman
Mitchell
Triangle
Gaussian
Lanczos
Hermite
Quadratic
Bessel
Hanning
Cubic
Sinc

The default value is Mitchell. In general, the Mitchell filter gives the best results and the Box filter is the fastest.

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.