webp Tile background color is not transparent
ApliNi opened this issue ยท 5 comments
It is normal in png format, this problem occurs after changing it to webp-l
tried setting background: 'transparent or #00000000 or reg(0,0,0,0)' in world.txt, but it doesn't work
Am I setting it wrong?
But you can get translucent tiles through glass
I modified the CSS to get a background with a pattern, so I need transparent tiles
thanks )
are you still using the default jpg storage standard, which cannot create transparent backgrounds IIRC? Try to use PNG as storage standard. also: there have been many changes after 3.3-beta-2, maybe this is changed in the latest version, 3.3-beta-5
ry to use PNG as storage standard
png does not have this problem, i changed it to webp (i forgot to describe webp..
I think I've got a lead on this - we encode the image for WEBP internally as PNG (which handles alpha fine) before passing it to the external cwebp tool to encode, BUT the rendering logic was treating anything that wasn't PNG as not supporting alpha (transparency), so the PNG had the background color baked in, and this was true in the resulting WEBP too. Coding fix now.