[GRASSLIST:5053] Re: one bit deep PNGs

Hamish hamish_nospam at yahoo.com
Sun Dec 5 01:33:56 EST 2004


> How does one get 1 bit deep PNGs?  I only draw with black on white, but
> $ d.mon stop=PNG
> $ convert -monochrome map.png shichengst1.png
> $ xli shichengst1.png
> shichengst1.png is a 640x480 8 bit deep grayscale PNG image with an
> alpha channel, background = #ff
> GRASS 5.7.0


maybe with pnmquant? (NetPBM program)

pngtopnm file_8bit.png | pnmquant [options] | pnmtopng > file_1bit.png




Hamish




More information about the grass-user mailing list