Repeater Dynamic Images

I am using a repeater connected to a database with images of different sizes and the images get stretched or cropped in the repeater. I need an option to change the size of the images dynamically within the repeater so the images can display in their original size. This is an option for lists, for instance. Thanks!

2 Likes

I need this too! Urgent. These settings do not seem to do anything.

Jess, a workaround is to remove the image and put in an (old) slider gallery. Set the gallery to FIT each image. We did this and itā€™s working well.

Just a quick note to say THANK YOU. Nice workaround until the repeater issue is fixed !

Kate from Sidney, I am not having luck with this when loading the slider gallery using the ā€˜itemsā€™ property in code. ā€˜Fitā€™ works fine with a static load of images in the editor, but loading from code the image field is blank. The images load fine from code using ā€˜Autocropā€™ (except they are cropped) but not with ā€˜Fitā€™ (the image is blank). Any suggestions?

Hey Bill, Iā€™m having the same issue. I submitted a ticket and hope to here back from the devs soon. Meanwhile, please do let me know if you find a solution to this problem

Thanks for replying. Please post if you have any luck. Meanwhile I am trying a different approach and will post if it works.
Cheers, Bill

Donā€™t use the Wix Pro Gallery. Use the old slider gallery. It has a little number up the top that you canā€™t do anything about. It loads pix from code very well.

Hey Kate, Iā€™m having the same issue. Bill and I are having the same issue. I am already using a non Wix Pro Gallery, I am using the ā€œSlider (arrows)ā€, but dynamic loading of picture and using ā€œFitā€ still wonā€™t work.

Hopefully developers at Wix will read this forum eventually and fix the bugā€¦ It has been almost a year since jessboston raised the issue.

I am not using a Wix Pro Gallery either. In fact the Wix Pro Galleries cannot even be placed in the repeaterā€™s container. I am using the ā€˜Slider (arrows)ā€™

Hey Bill. Iā€™ve been exchanging messages with the wix support team for the past 4 days. Finally came to a conclusion. The ONLY way to address the issue we are having, is resizing all the images you wish to add to the repeater to the same of the gallery box (using a batch image resizer; I use this https://bulkresizephotos.com).

Hopefully this will be addressed in the future, but meanwhile, this is all weā€™ve got.

Good luck!!!

s2deliptik . Thatā€™s really disappointing. Wix really needs to get on this and support the FIT parameter for image galleries. My application includes artwork display for an art gallery. Artistā€™s are not happy when their art is cropped! Thanks for the tip on the batch resizer.
Cheers, Bill

@jessboston @kate-from-sydney @trottecadichoncharbo @bill @s2deliptik
Good News! we are working on a new feature which will allow setting the images in the repeater with a fixed width and dynamic height.
Image height will grow/shrink according to the original image size.
Iā€™ll update here once we release it :slight_smile:

That is good news! Looking forward to it!.

@oferr ,

  1. I hope this feature will be set by code, so weā€™ll be able to change it based on the image size and the screen size.
  2. Canā€™t you let us decide which dimension should be fixed and which should be dynamic?

Great point by @J.D. We need to be able to set which dimension is fixed. @oferr

Hi @jonatandor35

  1. It will be set by code, but Iā€™m not sure yet if your use case will be possible.
  2. Sadly not, because our layout is dynamic vertically, but not horizontally.

@oferr I see. What do you think about the following case.
For mobile mode. Iā€™d like:

  1. to get the screen size (using wixWindow as usual).
  2. Then to detect the image dimensions (I know I can extract it from the file source string, so thatā€™s not a problem).
  3. Then, if the image width is equal to or greater than the image height, set the fixed width to be equal to the screen width.
  4. Else: calculate and set the image width so the full image height will be on the screen.

Do you think that will be possible?

@jonatandor35 the API will be to choose fixed width or fill or fit mode, defining the width itself, from code, wonā€™t be supported because we donā€™t allow layout definitions from code at the moment.