Issue

Why are certain layers in my layered image being cropped? Why is white space not added with the Size command?

Solution

From the documentation:

http://microsite.omniture.com/t2/help/en_US/s7/is_ir_api/index.html#is_api-http_ref-size

The image is scaled to be no larger than "size=." If you specify a normalized size, it is relative to the size of layer 0. If you specify both width and height, the source image is scaled (after crop= is applied) so that neither dimension exceeds the specified size. The aspect ratio of the source rectangle is maintained in all cases.

Compare this command to the width and height commands, which fills the entire area:

If scl= is not specified, the composite image is scaled to fit. If both wid= and hei= are specified, and scl= is not specified, then the image is scaled to fit entirely within the wid/hei rectangle, leaving as little background area exposed as possible. In this case, the image is positioned within the view rectangle according to the align= attribute.

The result of this is that some unexpected cropping can occur if sizing is done on the image used in layer 0.

This work is licensed under a Creative Commons Attribution-Noncommercial-Share Alike 3.0 Unported License  Twitter™ and Facebook posts are not covered under the terms of Creative Commons.

Legal Notices   |   Online Privacy Policy