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 .
×

Question about png vs webp files

Hey Kids! Still pretty new to roll20 and I'm trying to do the trick where you make secret writing by placing a token that looks just like your map layer, but with the secret message cut out. When I do the cutout and save it as a png file it has no border on the cutout, which is correct. When I upload it to Roll20 it converts it to a webp file and adds a thin gray border, which ruins the effect. Is there a trick to forcing Roll20 to accept it as a png file without conversion? Other images in my library have stayed as png files during the upload. Perhaps there is a way to tell webp to not add the border? Any clews would be appreciated.
In your game, under the settings tab, go to the Graphics section, scroll down to  Image Upload Format  and choose  "Use Original Format" .
A dragon's hoard of thanks, Rick. 
1795463163

Edited 1795463371
I was curious about this, since I use a lot of transparent-background tokens and had never seen any outlines, but I was not trying the secret-writing method.  So I made a test using a pair of transparent-background tokens, one with a black (#FFFFFF) circle and one with a while (#000000) circle. I put squares of the same color on the map layer, imported the circles both ways, and dropped the circles on the token layer. What I saw was that white tokens on a white background had a black outline, regardless of the import method (screengrab below): It's very faint, so you need to look close, just above the underline. I'm curious about how the invisible-writing trick differs, and whether this could be browser-dependent.  I did this on Mac Firefox. Can you share browser details, and examples of your wepb and png secret writing as seen on the vtt?
1795468615
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
I can't replicate Ken's demonstration. Here is a similar setup. White circles (didn't test with black circles, since there did not seem to be an issue) on black background and white background. I do not see a thin black outline on either png or webp. Mac Chrome. I also tried on Firefox, but the only difference I could see was that text does not seem to render as sharply on FF. Ken, what image software are you using to create your circles. I'm wondering if that might be an issue. I was using Photoshop.
Keith. I created the circles in omnigraffle, and then checked them in Photoshop Elements (I don't have the full ver) to verify the hex color, but used the png produced by omnigraffle.  I'll try creating a circle in PE. But this just means that neither of us replicated the original poster's situation, which leaves me even more confused.
1795471370

Edited 1795471638
I think it's a resolution-scaling issue.  The circles I was creating were 280x280 pixels (my usual 4x map resolution).  When I did that in PE, it was much fainter (you may need to zoom to see it; there are fewer black pixels around the circle, but they're there). However, if I made the circle 700x700 (and then downsized it on the vtt to one square) I got a darker border (still faint). Hmm, on viewing, I can't see the 280px circle's ghost on the uploaded image, but it's there on the original on my computer.  The 700's ghost is still visible on the upload. This does suggest that creating images at the map's native resolution of 70 pixels per inch may minimize the problem, although Roll20 does still do scaling on viewer zoom as I understand it, so that may not be perfect.
1795474376
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
FWIW, I created mine at resolution, but viewed at 250%. OP's problem was hopefully fixed by the conversion switch.