How do I get the full URL of an image form a collection using corvid code?
$w(‘#dataset1’).getCurrentItem().my_image currently gives me something starting with either wix:image:// or image://
And actually, manipulating the link using regex and replace won’t give me what I want as I observed that the full URL sometimes points to a .webp which is not present in the image:// link.
The URL to the forum, above, is actually a bit outdated. The Wix image path syntax has changed since then. Latest working version here:
https://www.wix.com/corvid/forum/community-discussion/how-can-i-export-images-in-database
Giri. thanks for correcting and posting up the latest working version 
Thanks for the answer @giri-zano
The posted solution won’t work for me unfortunately. It assumes that all of the info required is in the original link. If that were true, then yes rearranging and prepending “https://static.wixstatic.com/media/” works. But in my case I’ve found that:
-
If I go to the database and right click on the image to open the link in a new tab I get a full url which ends in .webp (and there’s a bunch of scrambled digits and numbers before that).
-
If I get the image url by exporting or using $w(' [#dataset1](https://www.wix.com/corvid/forum/search/~num~dataset1) ').getCurrentItem().my_image
I get only part of the information from the full url in (1). None of the webp stuff.
So in some cases it’s actually not possible to recover the full url.
(Why do I need this? Because I’m having issues with image orientation and I’m supposing the webp format does something with the EXIF parameters to make sure the image is shown upright. Without the webp part of the url I do manage to get the image back, but sometimes it’s rotated 90 degrees, and in a repeater with many images I can’t be guessing which is going to be rotated and which not)
I need this to. Did you ever find the solution?
Hi everyone, We currently don’t offer a way to do this. Please request it on our Wishlist page. Thanks!