You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello there! I’m currently looking into using astro-imagetools to implement my own <Img /> and <Picture /> components in Vue.js.
This should be possible by using the API functions, but unfortunately the values are returned as HTML. I could parse those return values and get my data that way, but I think it would be nice to provide some additional API functions to just return the data itself, so a user can decide how they want to build the HTML from it.
Something like getRawPicture(props) that returns an array of sources, the placeholder image, image dimensions, etc.
The text was updated successfully, but these errors were encountered:
It's on my roadmap but I currently don't have time to work on this. If you are interested you can create a PR. getImage() sounds better to me. The initial thought was to export the internal getImage() utility after tweaking a little bit.
Hello there! I’m currently looking into using
astro-imagetools
to implement my own<Img />
and<Picture />
components in Vue.js.This should be possible by using the API functions, but unfortunately the values are returned as HTML. I could parse those return values and get my data that way, but I think it would be nice to provide some additional API functions to just return the data itself, so a user can decide how they want to build the HTML from it.
Something like
getRawPicture(props)
that returns an array of sources, the placeholder image, image dimensions, etc.The text was updated successfully, but these errors were encountered: