resMode

Last update: 2022-06-02
  • Created for:
  • Developer
    User

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 are noticeable.

bicub

Selects bi-cubic interpolation. More CPU-intensive than bi-linear interpolation, but yields sharper images with less noticeable aliasing artifacts.

sharp2

Selects a modified Lanczos Window function as an interpolation algorithm. Can 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.

IMPORTANT

To maintain the aspect ratio of an image when you use both resMode=bisharp and fit=stretch, it is best practice to use either the width parameter or the height parameter. If both parameters must be defined, you can wrap them in a different layer as shown in the following example:

/is/image/is/image/companyname?layer=0&src=is(companyname/imagename?wid=30&hei=30&fit=stretch)&resmode=bisharp

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 can include text. The image is further processed 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

See also

attribute::ResMode

On this page