Hi yes this is possible,
Assuming this is the type of url you get from Wix:
"wix:image://v1/656460_7c0826fb3aed4d3f8dd0e39ddcae0ab6~mv2.png"
You can use the code below:
"https://static.wixstatic.com/media/" + imageSrc.split("/")[3] + "/v1/fill/w_128,h_128,al_c/" + ImageTitle + ".png "
And that would convert it to something like this:
"https://static.wixstatic.com/media/656460_7c0826fb3aed4d3f8dd0e39ddcae0ab6~mv2.png/v1/fill/w_128,h_128,al_c/ImageTitle.png"
IMPORTANT NOTE:
-
ImageSrc = The original WIX image Src
-
ImageTitle = The title or alt text that will display as the browser title
-
If the images you are passing doesn’t have a fixed width and height, Your only option is to change the fill to fit. Then you can set the image quality by adjusting the width and height. So this:
"https://static.wixstatic.com/media/" + imageSrc.split("/")[3] + "/v1/fit/w_128,h_128,al_c/" + ImageTitle + ".png "
- If you’re still having problem with how the image is being displayed, you can remove the effect but at a cost of your ability to change the image title. So this:
"https://static.wixstatic.com/media/" + imageSrc.split("/")[3]
Your welcome,
DJ bon26