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

Image hosting for custom sheets

May 20 (2 months ago)
Jiboux
Pro
Sheet Author
Compendium Curator

Hello all,

Since I released my sheet in 2021, the images that are in the sheet CSS have always been stored on Github with no issue.
I recently ran into problems where some of the images were missing ( which is a big problem as many of them are icons associated with actions on the sheet ), and found that this was associated with the following log

I began to question if I was right to host in Github, but found at least an old post recommending it as good practice.

https://app.roll20.net/forum/post/7426945/slug%7D

Is it still considered good practice ? Has someone else run in such problem ? Does anyone recommend hosting differently or is there something I can do because it can really cripple my sheet.
Thanks all for your help


May 20 (2 months ago)
GiGs
Pro
Sheet Author
API Scripter

It is still good practice. All image hosts will have issues from time to time, but the github site where the HTML and CSS files are also stored is your most reliable place.

May 20 (2 months ago)
Scott C.
Forum Champion
Sheet Author
API Scripter
Compendium Curator

huh, wonder if github changed their service terms? A lot of services have been doing that lately.

May 20 (2 months ago)

Edited May 20 (2 months ago)
vÍnce
Pro
Sheet Author

When I check the logo image url for the PF community sheet from roll20's master repo it shows;
https://raw.githubusercontent.com/Roll20/roll20-character-sheets/refs/heads/master/Pathfinder%20Community/Images/pf_logo.png
This seems to be a slightly different path than the one in your 429 error.
That said, when I check the image URL for the Earthdawn sheet from roll20's master repo I see;
https://raw.githubusercontent.com/Roll20/roll20-character-sheets/refs/heads/master/Earthdawn%20(FASA%20Official)/Images/Matrix-Enhanced.png

which IS a similar path as the PF Community sheet images.
Curious on how/where you are getting the image URL?  I'm thinking that if you use the path from roll20 master (ie includes "/refs/heads/master/...") you shouldn't get any errors.

May 21 (2 months ago)
Jiboux
Pro
Sheet Author
Compendium Curator
Interesting point...
In my CSS the path is declared like this
.sheet-icon-matrix-enhanced    { content: url(https://raw.githubusercontent.com/roll20/roll20-character-sheets/master/Earthdawn%20%28FASA%20Official%29/Images/Matrix-Enhanced.png); } 

so prefixed

https://raw.githubusercontent.com/roll20/roll20-character-sheets/master/Earthdawn%20%28FASA%20Official%29/Images/
and not
https://raw.githubusercontent.com/Roll20/roll20-character-sheets/refs/heads/master/Earthdawn%20(FASA%20Official)/Images/

I can't remember how I found the URL 3 years ago. Both links seem to open the image correctly in a browser, but do you think the different path could have something with the error?


May 21 (2 months ago)

Edited May 21 (2 months ago)
vÍnce
Pro
Sheet Author

Jiboux said:

I can't remember how I found the URL 3 years ago. Both links seem to open the image correctly in a browser, but do you think the different path could have something with the error?


Hard to say why there's a URL path difference. 
Just for reference, I checked the URL used in the HTML/CSS for the PF Community sheet ;

yet as mentioned above, the URL I see if I navigate directly to the image on repo is;
https://raw.githubusercontent.com/Roll20/roll20-character-sheets/refs/heads/master/Pathfinder%20Community/Images/pf_logo.png

I only see a handful of roll20 sheets on the repo that include the "/refs/heads/master/..." path so
I wonder if github has made a change on their end?  It would seem that either URL path works.