Alpha transparency in indexed-png images -


here image: gradient1 http://adamhaskell.net/img/gradient1.png
image simple black-to-transparent gradient saved in full rgba png.

here same image, converted indexed-alpha png gimp (photoshop produces same result)
gradient2 http://adamhaskell.net/img/gradient1b.png
can see, gradient half-opaque, half-transparent.

here same image again, time converted indexed-alpha png php script wrote:
gradient3 http://adamhaskell.net/img/gradient1c.png

so question is: why gimp , photoshop unable support partial transparency in indexed images, when php script shows such image can created no problems?
there "wrong" image pallette contains alpha information?
more programming-related question: transparency in last image work in internet explorer 6?

another option besides fireworks pngquant, command line application convert rgba png indexed png transparency.

i found this post talks more how use it.

ie6 , earlier in windows not support variable transparency pngs without annoying workarounds. indexed png show opaque parts works pretty well. drop shadow disappear opaque parts of logo or icon continue show.

this page has better explanation , instructions more png compression , quantization tools: http://calendar.perfplanet.com/2010/png-that-works/


Comments

Popular posts from this blog

android - Spacing between the stars of a rating bar? -

html - Instapaper-like algorithm -

c# - How to execute a particular part of code asynchronously in a class -