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!
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
That is good news! Looking forward to it!.
@oferr ,
- 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.
- 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
- It will be set by code, but Iām not sure yet if your use case will be possible.
- 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:
- to get the screen size (using wixWindow as usual).
- Then to detect the image dimensions (I know I can extract it from the file source string, so thatās not a problem).
- 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.
- 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.