Cosmin Truta - 2003-05-29

Logged In: YES
user_id=24402

If you just want to transform your RGB image to grayscale,
there is already a function called png_set_rgb_to_gray().
If you want a lossless RGB-to-Gray, palette-to-Gray,
alpha-strip etc. reduction, then you can use the code in
"opngreduc.c" from OptiPNG. That code *might* become a part
of libpng in the future, if the maintainer of libpng will
agree.

You may find OptiPNG at
http://www.cs.toronto.edu/~cosmin/pngtech/optipng/

I hope this helps.
Cosmin Truta