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

WebP image assets fail to load (amazon s3 error).

1619133354

Edited 1619133676
When a WebP image is uploaded to a Roll20 asset library, the file is recognized as existing, but cannot be added as a token, and no image preview is available. Further inspection of the image preview element reveals that the image link itself, while seemingly correctly formed (compared to the link for a jpg image), leads to a endpoint with "AccessDenied". Example:&nbsp; <a href="https://s3.amazonaws.com/files.d20.io/images/216434260/HUiOmQotbzvw7u_JdHw67g/thumb.webp?1618695964" rel="nofollow">https://s3.amazonaws.com/files.d20.io/images/216434260/HUiOmQotbzvw7u_JdHw67g/thumb.webp?1618695964</a> Example: ( of above link's page as image )&nbsp; Note, replacing ".webp" with ".jpg" returns a preview 200x200 jpg version of the image asset in question. Example:&nbsp; <a href="https://s3.amazonaws.com/files.d20.io/images/216434260/HUiOmQotbzvw7u_JdHw67g/thumb.jpg" rel="nofollow">https://s3.amazonaws.com/files.d20.io/images/216434260/HUiOmQotbzvw7u_JdHw67g/thumb.jpg</a> Original image:&nbsp;<a href="https://static.jpcode.dev/img/my_art/Orb-4096p1024s-DENOISE(4-B2.90).webp" rel="nofollow">https://static.jpcode.dev/img/my_art/Orb-4096p1024s-DENOISE(4-B2.90).webp</a>
Possibly related thread:&nbsp;<a href="https://app.roll20.net/forum/post/7182957/web-p-breaks-after-reloading-the-editor" rel="nofollow">https://app.roll20.net/forum/post/7182957/web-p-breaks-after-reloading-the-editor</a>
1619134110

Edited 1619134617
Update: the same pattern is observed for the "max" (as opposed to "thumb") versions of these image links. (WebP AccessDenied, JPG works fine). ex .jpg:&nbsp; <a href="https://s3.amazonaws.com/files.d20.io/images/216434260/HUiOmQotbzvw7u_JdHw67g/max.jpg" rel="nofollow">https://s3.amazonaws.com/files.d20.io/images/216434260/HUiOmQotbzvw7u_JdHw67g/max.jpg</a> ex .webp:&nbsp; <a href="https://s3.amazonaws.com/files.d20.io/images/216434260/HUiOmQotbzvw7u_JdHw67g/max.webp" rel="nofollow">https://s3.amazonaws.com/files.d20.io/images/216434260/HUiOmQotbzvw7u_JdHw67g/max.webp</a> ALSO NOTE: For files originally uploaded as WebP, the "JPG" links work, but the ContentType of the response image is image/webp. In other words, the file name given in the link is "max.jpg" or "thumb.jpg", but the actual image data is encoded as WebP. Currently, the Roll20 app requests "max.webp" or "thumb.webp" but those are dead links. Recommended solution: Correctly list WebP images at links ending in ".webp" instead of ".jpg", as the app.roll20.net front-end expects.