# How to set image to "contain" or fit

**URL:** <https://community.glideapps.com/t/how-to-set-image-to-contain-or-fit/74566>\
**Category:** Ask for Help\
**Created:** [July 2, 2024, 6:13pm UTC](https://community.glideapps.com/t/how-to-set-image-to-contain-or-fit/74566 "2024-07-02T18:13:52Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nathan\_M](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/nathan_m/32/43901_2.png) [@Nathan\_M](https://community.glideapps.com/u/Nathan_M)\
**Post date:** [July 2, 2024, 6:13pm UTC](https://community.glideapps.com/t/how-to-set-image-to-contain-or-fit/74566/1 "2024-07-02T18:13:53Z")

</div>

Hey guys,

I have a number of image displays and would like to know if there is a way to adjust the display to “contain” or “fit”. Right now the images are quite out of focus.

 ![image](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/b/e/bea671a09ba554e9f1802513db8a23d512604e43.jpeg)

---

<div class="post-metadata">

**Author:** ![ThinhDinh](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/thinhdinh/32/49_2.png) [@ThinhDinh](https://community.glideapps.com/u/ThinhDinh)\
**Post date:** [July 2, 2024, 11:10pm UTC](https://community.glideapps.com/t/how-to-set-image-to-contain-or-fit/74566/2 "2024-07-02T23:10:27Z")

</div>

At the moment, there’s no native way to do that. I would suggest trying Cloudinary’s transformations, such as the one below, to see if it would help better with the focus, if you want a specific aspect ratio.

> **[Face-Detection Algorithms for Image Transformations | Cloudinary](https://cloudinary.com/documentation/face_detection_based_transformations)**
>
> Learn how to transform images using Cloudinary's face-detection algorithms, including cropping, overlaying, blurring and pixelating.
