Roll20 uses cookies to improve your experience on our site. Cookies enable you to enjoy certain features, social sharing functionality, and tailor message and display ads to your interests on our site and others. They also help us understand how our site is being used. By continuing to use our site, you consent to our use of cookies. Update your cookie preferences .
×
Create a free account

can API import an image into your library?

1592784043
Joshua S.
Pro
Sheet Author
API Scripter
I am trying to write a script that will build a custom deck based on certain properties in your character sheet. When creating deck and card objects I need to specify the image for the card. I know I can't just specify a web url and I know it must reference an image in a roll20 library. Since this script will eventually be public and official, I can't know exactly what the end-user has in their library. Right now my fix is to create an unused game solely for holding the image assets (possibly linked to a dummy account), but this seems kludgy and dangerous. I know images from the web can be used on character sheets. Is there any way to have the API deposit an image from the internet into a user's library so that it can then be placed on the map? Or to use the API to grab images from the character sheet?
1592794747
The Aaron
Roll20 Production Team
API Scripter
Nope, sorry.  Having an account that houses the images is the way I would approach it.