FilterTypes

Used to adjust the filter algorithm used when resizing images. Different filters experience varying degrees of success with various images and can take significantly different amounts of processing time. ImageMagick uses the LanczosFilter by default since this filter has been shown to provide the best results for most images in a reasonable amount of time. Other filter types (e.g. TriangleFilter) may execute much faster but may show artifacts when the image is re-sized or around diagonal lines. The only way to be sure is to test the filter with sample images.

Values

ValueMeaning
UndefinedFilter
PointFilter

ditto

BoxFilter

ditto

TriangleFilter

ditto

HermiteFilter

ditto

HanningFilter

ditto

HammingFilter

ditto

BlackmanFilter

ditto

GaussianFilter

ditto

QuadraticFilter

ditto

CubicFilter

ditto

CatromFilter

ditto

MitchellFilter

ditto

JincFilter

ditto

SincFilter

ditto

SincFastFilter

ditto

KaiserFilter

ditto

WelshFilter

ditto

ParzenFilter

ditto

BohmanFilter

ditto

BartlettFilter

ditto

LagrangeFilter

ditto

LanczosFilter

ditto

LanczosSharpFilter

ditto

Lanczos2Filter

ditto

Lanczos2SharpFilter

ditto

RobidouxFilter

ditto

RobidouxSharpFilter

ditto

CosineFilter

ditto

SplineFilter

ditto

LanczosRadiusFilter

ditto

SentinelFilter
BesselFilterJincFilter
Lanczos2DFilterLanczos2Filter
Lanczos2DSharpFilterLanczos2SharpFilter

See Also

Resize Filters in the Examples of ImageMagick Usage.

Meta