Is it possible to avoid having the Image Server pad an image if the aspect ratio does not match the width and height? Can I use fit with UGC (user-generated content) images, such as on a decal area or with IS templates?


Avoid padding to maintain aspect ratio

You can use the fit command to scale an image. This procedure is not recommended, since it can either distort the image, or crop aspects of it. A better option is to maintain a consistent aspect ratio for uploaded content. Or, you can allow the images to maintain aspect ratio by not restricting the height or width. If these methods are not an option, see the documentation for the fit command:

Use a UGC image on an IR decal

The best practice is to query the UGC image to find out its aspect ratio. Then, size it and then add it to the decal area with the appropriate commands.

However, if this method is not possible, you can use the fit command as shown below:

Bu çalışma Creative Commons Attribution-Noncommercial-Share Alike 3.0 Unported License kapsamında lisanslanmıştır  Creative Commons şartları, Twitter™ ve Facebook sitelerinde paylaşılanları kapsamaz.

Yasal Uyarılar   |   Çevrimiçi Gizlilik İlkesi