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 .
×
D&D 2024 has arrived! Pre-order the new core rulebooks now and get an exclusive pre-order bonus for free!
Create a free account

Same file multiple times in art library -> my library -> how to find out whether a file is still used?

Folks, I try to clean up my art library. I have several pictures that I "somehow" uploaded several times for use in different handouts or maps or whatever. However, when you intend to delete a picture or file from your art library you always get a warning (Are you sure you want to delete ***.png? This item will be permanently removed from your library and all games it's used in. This action cannot be undone). My best guess is - this warning is issued without any relation to whether that specific file is used anywhere in my games. I deleted a file some time ago that I found more than once in my art library (equal file name and content) and ended up with a broken handout in one game. Therefore, the warning makes sense. I do not know how data and files are organized on roll20 and whether the files are linked and have a unique id. It would be very helpful to be able to find out, where a specific file in your library is used (game and object) and if it is still used at all. Is there any way to do it? Something like "delete unused items" would also be very helpful. I would be grateful for any tips or suggestions. All the best for 2023, have a great party and see/read/hear you next year... 
1672521370
The Aaron
Roll20 Production Team
API Scripter
The best you can do currently would be a Mod Script that builds a list of all images in a game which you could then cross reference to the image in question. You'd have to check each game individually. 
1672524454
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
The Survey script can produce such a list, as well as indicating which images are in your library or are marketplace images.
1672528667
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
Survey is available in one-click. Here's how to get a report. Each entry shows you how many times the graphic is used in a campaign: Click on any entry for a per-page report of that image:
Thanks, I added the script to a game and - wow, I get a lot of information. Yes with that tool and the per-page report I can identify which of the files is still used and by identifying the file-path in the report an in the library I can also check which one of my multiple versions of the same picture with the same display-name it really is.  It is a laborious task, though, as you have to go through every campaign to make sure which of the multiple files in the library it is. One could do that quicker after renaming equal files with equal names in one's library if the display name of a file in the art-library is also given in the report. Or allow a survey from the "library-side" to check where a file is used. However, I get the feeling that I just have to order my library better and avoid multiple uploads. I have no problem at all with my 8 GB yet, but better be prepared ;-) Thanks again, I learned a lot!
1672596123
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
Unfortunately, mod scripts lack good library access. This has been requested. Even if we did have it, the sandbox nature of the system means that you could only search one game at a time.
Ok, thanks, understood.