Example
Separate a printable CMYK image into several full-resolution strips to reduce the download file sizes. If you requested a contiguous image:
http://server/is/image/cat/imageId?scl=1&op_usm=.9,2&bgc=ffffff&fmt=tif&icc=WebCoated
First, relevant information about the image is obtained:
http://server/is/image/cat/imageId?scl=1&op_usm=.9,2&bgc=ffffff&req=props
The text response includes these properties:
image.width=2000 image.height=2400 image.version=37JK6NTvpvC42F5gOuLEVY
Based on this information, four 600x2000 pixel strips are desired. The rect=
command is used to describe the strip sizes and positions.
Because this image is changed frequently, the id=
command is included. Doing so minimizes the chance of ending up with one or more strips from an older version of the image which may have been cached in a CDN or proxy server. The value of the image.version
property is used for this purpose.
http://server/is/image/cat/imageId?scl=1&op_usm=.9,2&bgc=ffffff&id=37JK6NTvpvC42F5gOuLEVY&rect=0,0,2000,600 http://server/is/image/cat/imageId?scl=1&op_usm=.9,2&bgc=ffffff&id=37JK6NTvpvC42F5gOuLEVY&rect=0,600,2000,600 http://server/is/image/cat/imageId?scl=1&op_usm=.9,2&bgc=ffffff&id=37JK6NTvpvC42F5gOuLEVY&rect=0,1200,2000,600 http://server/is/image/cat/imageId?scl=1&op_usm=.9,2&bgc=ffffff&id=37JK6NTvpvC42F5gOuLEVY&rect=0,1800,2000,600
Properties
View attribute. It applies regardless of the current layer setting.
Any areas of the ROI extending outside the view image are padded with bgc=
.
Important rect=
is applied after final scaling and fitting with scl=
, wid=
, hei=
, fit=
, rgn=
, and align=
.