[magick-users] converting binary ppm to ascii ppm
Anthony Thyssen
anthony at griffith.edu.au
Sun Jul 22 22:52:24 PDT 2007
"hugo vanwoerkom" on wrote...
| Hi,
|
| I need to convert a binary ppm file (begins with magic number 'P6') to
| an ascii ppm file (begins with magic number 'P3').
|
| How do I do that?
|
As detailed in the NetPBM examples of IM Examples
http://www.imagemagick.org/Usage/formats/#netpbm
=======8<--------CUT HERE----------axes/crowbars permitted---------------
You can select between the plain text (P1-3) and binary (P4-6) formats
by using the -compress setting.
For example --- a plain text PGM (P2) image
compress pattern:fishscales -compress None plain.pgm
Or a binary PGM (P5) image (use default compression)
compress pattern:fishscales +compress binary.pgm
=======8<--------CUT HERE----------axes/crowbars permitted---------------
Anthony Thyssen ( System Programmer ) <A.Thyssen at griffith.edu.au>
-----------------------------------------------------------------------------
"You see, wire telegraph is a kind of a very, very long cat. You pull his
tail in New York and his head is meowing in Los Angeles. Do you understand
this? And radio operates exactly the same way: you send signals here, they
receive them there. The only difference is that there is no cat."
--- Albert Einstein
-----------------------------------------------------------------------------
Anthony's Home is his Castle http://www.cit.gu.edu.au/~anthony/
More information about the Magick-users
mailing list