Annoying 8 bit versus 24 bit png problem...
StormyStudio
United KingdomMember Posts: 3,989
- I've got a photo of some rusty pipes,
- I've photoshopped it so the pipes are on a transparency/alpha
- If I export it as a 24 bit png, the file size is quite hefty but the transparency is perfect.
- If I export it as 8 bit with transparency, I get some dodgy white lines around the pipes, and some white pixels scattered in the transparent bits (which are not in the picture in photoshop). But the file size is much nicer.
Any ways round this?, I dont mind losing some quality in the colour range, but it needs to have a clean transparency.
I'm using 'save for web' in Photoshop.
- I've photoshopped it so the pipes are on a transparency/alpha
- If I export it as a 24 bit png, the file size is quite hefty but the transparency is perfect.
- If I export it as 8 bit with transparency, I get some dodgy white lines around the pipes, and some white pixels scattered in the transparent bits (which are not in the picture in photoshop). But the file size is much nicer.
Any ways round this?, I dont mind losing some quality in the colour range, but it needs to have a clean transparency.
I'm using 'save for web' in Photoshop.
Comments
With PNG-8, you can only specify one single color as transparent.
It's useful in some situations, but the transparent part cannot be anti-aliased.
Using PNG-8 is just for keeping file sizes down. When GS imports everything, it turns it into either 24- or 32-bit textures.
Which is how you are able to fade, scale, or rotate an Actor with a PNG-8 graphic and have it be smooth. If it kept it as an 8-bit graphic, it would be horribly jaggy.
I'm sure I would of hit the problem before, or at the very least read about it, but it must have passes me by