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 .
×
May your rolls be merry + bright! 🎄
Create a free account
This post has been closed. You can still view previous posts, but you can't post any new replies.

Recovering Assets after HDD Failure

Hi all, The disk that I used to create all of my assets for my game failed recently (as did the backup disk... it was a bad week). I was hoping that I could recover those that I had already uploaded to R20. I searched the forum and all of the questions regarding this topic are quite old, so I thought I'd see if there has been an update to the answer, "R20 only allows uploads, not recovery via download."  So, is there any way to download all of the assets I've uploaded to R20? Cheers, Zach
1469801129
Ziechael
Forum Champion
Sheet Author
API Scripter
You can retrieve them from your  library although it will be a somewhat lengthly process for multiple images. Enter your library and right click an asset to select 'Copy Image Address', then you can paste that into the address bar of a browser and change the word 'thumb' to read 'original' instead. Press enter to load the asset in its original size which you can then right click again and 'save as'. Rinse, repeat and good luck!
1469805978

Edited 1469808781
The Aaron
Pro
API Scripter
Yeah, as Z says, not easy...  This Bookmarklet might make it a little easier: javascript:(function(){ var links=$('div.library_result').map(function(idx,block){ var $block=$(block), img = $block.find('img'), name = $block.find('div.yourtags li').map(function(i,o){return $(o).text();}).toArray().join('_'), ext = img.attr('src').match(/\b(?:thumb|max|original)\b\.(\w*)/)[1]; return $('<a style="border:1px solid #999;float:left;display:block;width:52px;height:52px;" href="'+img.attr('src').replace(/\b(?:thumb|max)\b/,'original')+'" download="'+name+'.'+ext+'"><img style="max-width:50px;max-height:50px;" src="'+img.attr('src')+'"></a>').click(function(){$(this).css('opacity',0.5);}); }).toArray(); $('<div style="position:absolute;width:100%;top:10em;left0;z-index:10000;background-color: #ccc;"></div>').html(links).appendTo('body');}()); In Chrome, go to the Bookmark Manager and make a new Page bookmark (named something like "Roll20 Image Library Download Assistant") and place the above as the URL of the link. Next, go to your library page and scroll down to the very bottom (so that all your images get loaded on the page).  Next, click your created bookmark from above and scroll up to the top of the page.  There will be a new block with thumbnails of all your images.  Clicking each in turn will download the image in the original size (and grey out the thumbnail).  Definitely faster than copy pasting.  I tried to get it to name the files, but unfortunately they will all be named 'original'. Let me know if you need any more directions to get that working and Happy Rolling! Edit : I did notice that the filename I added (concatenation of the tags for the image) will be the default option if you right click each image and download the link.  Not as fast as just clicking, but if you want to have some context on the files without manually renaming, it might be quicker in the long run.
1469808504

Edited 1469808938
Lithl
Pro
Sheet Author
API Scripter
You should remove that height:100% on the div, Aaron. It's coming out as the viewport height, not the document height. If you simply remove it, the height of the background div will be the height of the content (all the images you put in it). Relevant for a library with a bunch of images, with all of the images loaded. Compare with height:100%: Versus the exact same thing, without height:100%:
1469808795
The Aaron
Pro
API Scripter
Good call!  It is done. =D
1469808951

Edited 1469809720
Lithl
Pro
Sheet Author
API Scripter
You could also use an extension like Down Them All (Firefox) to get all of them with one click. It looks like it supports the download attribute, too, so they'd be named correctly.  Chrono Download Manager (Chrome) might work as well, but I've never tried it.
Excellent! Thanks you very much! Cheers, Zach
1469815893
The Aaron
Pro
API Scripter
No problem!  We're problem solvers!  =D
For posterity (and anyone else who finds this thread later): Chrono Download Manager on Chrome does work... just make sure to turn off the "Save As..." automatic feature in Chrome or you will have a never-ending nightmare of windows. 
1469817068
The Aaron
Pro
API Scripter
Awesome!