Show Menu
TOPICS×

resMode

Resampling mode. Chooses the resampling and/or interpolation algorithm to be used for scaling image data. Also applies to rotation of text layers and resizing of composite images during the view transform.
resMode=bilin|bicub|sharp2|bisharp
bilin
Selects standard bi-linear interpolation. Fastest resampling method; some aliasing artifacts may be noticeable.
bicub
Selects bi-cubic interpolation. More CPU-intensive than bi-linear interpolation, but will yield sharper images with less noticeable aliasing artifacts.
sharp2
Selects a modified Lanczos Window function as an interpolation algorithm. May produce slightly sharper results than bi-cubic at a higher CPU cost. sharp has been replaced by sharp2 , which has a lesser likelihood of causing aliasing artifacts (Moiré).
bisharp
Selects Photoshop default resampler for reducing image size which is called "bicubic sharper" in Adobe Photoshop.

Properties

Request attribute. Applies to all scaling operations involved in creating the final reply image, including all layer scaling.

Default

attribute::ResMode

Example

Retrieve a best-quality rendition of a layered image stored in an image catalog. The image might include text. We expect to further process in an image editing application, and thus request an alpha-channel with the image.
http:// * server */myLayeredImage?fmt=tif-alpha,,lzw&resMode=sharp2&wid=1800