How can you report png8 from png24

I am working on a site with a lot of png24 files, for transparency.

I need to replace them with png8 files since all the javascript workarounds for png fix for png24 force IE6 to block randomly.

Check out this link for an idea of โ€‹โ€‹IE6 manifestations - http://blogs.cozi.com/tech/2008/03/transparent-pngs-can-deadlock-ie6.html

Does anyone know an easy way to target existing png24 files to replace them with png8s?

I use OS X, and file browsers such as Adobe bridge do not show this, and I can not find command line or finder information.

Help!

+5
source share
7 answers

An fileOSX utility can tell you about color depth in a PNG file, for example:

% file foo.png 
foo.png: PNG image data, 1514 x 1514, 8-bit grayscale, non-interlaced
+7
source

You can really get alpha transparency in PNG-8, but it is very difficult. http://www.sitepoint.com/blogs/2007/09/18/png8-the-clear-winner/ http://www.personal.psu.edu/drs18/blogs/davidstong/2007/09/png8_alpha_transparency_from_f. html

It basically creates GIFs as a substance for IE6 and true PNGs with alpha transparency for the best browsers. This is a more pleasant path of degradation. Right now, I think you need Fireworks, but I'm exploring other options.

+3
source

Alnitaks, PNG24, , pngquant:

pngquant -v -f --ext .png 256 *.png

PNG PNG8 , .

+2

, . PNG8s IE6. PNG24 PNG8, , GIF.

, / script - - , , ?

( !) .

+1

JoeBloggs , .

IE6 pngfix script. pngfix script, IE6.

PNG8 , GIF.

+1

pngcheck, , . http://www.libpng.org/pub/png/apps/pngcheck.html

pngcheck.exe a.png
OK: a.png (1024x1024, 32-bit RGB+alpha, non-interlaced, 80.7%).

pngcheck.exe b.png
OK: b.png (1024x1024, 8-bit palette+trns, non-interlaced, 83.1%).
+1

, imagemagick png24 png8.

0

All Articles