> For the complete documentation index, see [llms.txt](https://docs.scaleflex.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.scaleflex.com/dynamic-media-optimization-dmo/transformations/image-optimization/operations/prevent-enlargement.md).

# Prevent enlargement

Do not upscale an image if target size is larger than the origin image

When resizing with **width** or **height** operation, Filerobot either reduces or increases the dimensions of the image to keep proportions. To prevent the image from getting resized to a bigger size than the original, use the **org\_if\_sml** operation.

<mark style="color:orange;">**org\_if\_sml=1**</mark>

## Examples

| Preview                                                                                                                                                                                                             | Syntax                                                                                                                                                                                                                                                        |
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| ![](https://2536208400-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fqsq2dR7Fjagf5eTifWZx%2Fuploads%2FejjDJYAoGoBoJQTNYbGQ%2Fimage.png?alt=media\&token=726c0345-f4eb-472d-95da-3712e56e85d4) | <p>Allow upscaling (default):<br><a href="https://fdocs.filerobot.com/docs/ny_doc.jpg?w=450">/docs/ny\_doc.jpg?<mark style="color:orange;"><strong>w=450</strong></mark></a></p>                                                                              |
| ![](https://2536208400-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fqsq2dR7Fjagf5eTifWZx%2Fuploads%2Fg187n0fuxCewtogwA2tw%2Fimage.png?alt=media\&token=a24dfde5-51ba-4e7a-abb2-4f0855871088) | <p>Prevent upscaling:<br><a href="https://fdocs.filerobot.com/docs/ny_doc.jpg?w=450&#x26;org_if_sml=1">/docs/ny\_doc.jpg?<mark style="color:orange;"><strong>w=450</strong></mark>&<mark style="color:orange;"><strong>org\_if\_sml=1</strong></mark></a></p> |
|                                                                                                                                                                                                                     |                                                                                                                                                                                                                                                               |
