Issue

How can I crop a set number of pixels from an image if the dimensions are unknown? The crop parameter wants to know the width and height, but these measurements differ between images.

Solution

Use the extend parameter instead of crop. For example, to crop 20 pixels from all four sides, supply negative values for left, right, top, and bottom:

http://server/is/image/company/image?extend=-20,-20,-20,-20

For more information, see http://microsite.omniture.com/t2/help/en_US/s7/is_ir_api/index.html#is_api-http_ref-extend.

Za ta izdelek je bila izdana neprenosljiva licenca za priznanje avtorstva, nekomercialno uporabo in skupno rabo pod enakimi pogoji 3.0  Objav v storitvah Twitter™ in Facebook ne urejajo pogoji pogodbe Creative Commons.

Pravna obvestila   |   Pravilnik o zasebnosti v spletu