
So, recently I have been adding a bunch of background images to my game since I really enjoy the ability to set the scene dynamically in Roll20 outside of just combat maps. My main method has been grouping similar sized images into separate rollable tables/multisided tokens and using text on the GM layer to tell me what images are where. It works well enough for my purposes but when adding new photos it gets repetitive and the time involved is somewhat of a deterrent.
That led me to an idea for a script; however, I am sure someone has come up with an efficient solution already that I haven't discovered/read yet. If that is the case, please point me in that direction! In the case that there isn't a simple, effective solution yet I had a few ideas on how to make the process easier for me and would like some input on them as well as gauge if this is even something that would benefit other users at all.
Original Idea -
- Have a single page that the script 'listens' to and triggers any time an image is dragged to the map layer from the library.
- The page deletes any previous image on the map layer and changes the page dimensions to match that of the image's native resolution.
- I believe this would have the obstacle of native resolution not being used when images are imported so this may not even be remotely possible.
- A possible workaround is to ask for the desire image resolution when dragged out but that's less desirable and probably already possible with things like the Resizer script.
- Another possible solution is to require file names to have the dimensions listed in a specific format such as "Mountain Landscape --800x600" for the script to parse the dimensions from there and set both the page and the image. I think this is likely where it would end up and requires a little more legwork during upload than I'd like but would require no further input when dragging an image to the map page for future uses.
Again, I'd love to hear any input/criticism/suggestions so I can get a better idea of whether this is something worth spending time on or if this already exists!