# Auto resize of images in repeater element connected to dynamic page.

**URL:** <https://forum.wixstudio.com/t/auto-resize-of-images-in-repeater-element-connected-to-dynamic-page/12149>\
**Category:** Ask the community\
**Tags:** question, code\
**Created:** [February 5, 2019, 9:13pm UTC](https://forum.wixstudio.com/t/auto-resize-of-images-in-repeater-element-connected-to-dynamic-page/12149 "2019-02-05T21:13:28Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![fiona\_hud](https://avatars.discourse-cdn.com/v4/letter/f/a3d4f5/32.png) [@fiona\_hud](https://forum.wixstudio.com/u/fiona_hud)\
**Post date:** [February 5, 2019, 9:13pm UTC](https://forum.wixstudio.com/t/auto-resize-of-images-in-repeater-element-connected-to-dynamic-page/12149/1 "2019-02-05T21:13:28Z")

</div>

Is there a piece of code that can be added to make the image frame in the repeater automatically adjust to fit the size of each image? Currently the images are cropped and stretched which is unsuitable.

Any other suggestions/solutions would be appreciated. Thanks in advance, Fiona

---

<div class="post-metadata">

**Author:** ![aribbonsaras](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/aribbonsaras/32/11915_2.png) [@aribbonsaras](https://forum.wixstudio.com/u/aribbonsaras)\
**Post date:** [May 11, 2019, 6:37am UTC](https://forum.wixstudio.com/t/auto-resize-of-images-in-repeater-element-connected-to-dynamic-page/12149/2 "2019-05-11T06:37:57Z")

</div>

I am having the same issue.

---

<div class="post-metadata">

**Author:** ![shanestanleydivix](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/shanestanleydivix/32/15671_2.png) [@shanestanleydivix](https://forum.wixstudio.com/u/shanestanleydivix)\
**Post date:** [June 15, 2020, 9:15pm UTC](https://forum.wixstudio.com/t/auto-resize-of-images-in-repeater-element-connected-to-dynamic-page/12149/3 "2020-06-15T21:15:33Z")

</div>

same issue here a year later…It’s a powerful tool to use a repeater with datasets to display content, but the image cropping/resizing issue almost renders it useless since the original product images are not the same size.

I am using this with a search bar to display content after a query is typed into the search bar, and it returns the correct data, but the images that accompany the data are cropped and so I might have to scrap the whole search bar (which is really sad). It would be awesome if someone can find a work-around.

thanks

---

<div class="post-metadata">

**Author:** ![givemeawhisky](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/givemeawhisky/32/5383_2.png) [@givemeawhisky](https://forum.wixstudio.com/u/givemeawhisky)\
**Post date:** [June 16, 2020, 1:42am UTC](https://forum.wixstudio.com/t/auto-resize-of-images-in-repeater-element-connected-to-dynamic-page/12149/4 "2020-06-16T01:42:50Z")

</div>

Have a look at fitMode.  
[https://www.wix.com/corvid/reference/$w.Image.html#fitMode](https://www.wix.com/corvid/reference/$w.Image.html#fitMode)

Old post being closed.
