Join the Webstudio community

Updated 2 months ago

How do i access images uploaded into html embed.

At a glance

The community member is asking if there is a way to access images uploaded to the assets of a Webstudio project and use them in an HTML embed tag. The comments suggest that this may not be possible, as the image URLs may change in the future and are not made available through the UI. However, one community member suggests that it may be possible to add an img component to the page, hide it, and then retrieve the source URL via the HTML embed. Another community member agrees that this could work, but there is no definitive answer provided.

Is there a way i can access the images uploaded into the assets for a website within webstudio project to use the in html embed tag. what is the url or method to use it.
M
J
c
6 comments
I really don’t know… @John Siciliano do you have an idea?
You shouldn’t do that because the image URL may change in the future and that’s why we don’t make them available through the UI
So it is not possible to make a code who manipulate these images?
looks like that. so i guess we need to have a interface to modify html embed code which is non script and html to change into blocks as per webstudio strcuture.
Idk exactly the use cae but I think it's possible... you could add img component to the page and hide it but put a class/id on it so that you can retrieve the src via your html embed
Thanks John ! I gonna try 🙂
Add a reply
Sign up and join the conversation on Discord