| AWARE [SYSTEMS] | Imaging expertise for the Delphi developer | |||||||
![]() |
TIFF and LibTiff Mailing List Archive | |||||||
LibTiff Mailing List
TIFF and LibTiff Mailing List Archive Contact
The TIFF Mailing List Homepage |
Thread2007.08.28 18:27 "Re: Bits/sample must be 1 for Group 3/4 encoding/decoding", by Paul SmithOn 8/28/07, Toby Thain <toby@smartgames.ca> wrote: > >>> When trying to convert from ppm to tiff, I get th following error: > >>> > >>> $ ppm2tiff -c g4 pag-160.ppm lixo.tif > >>> lixo.tif: Bits/sample must be 1 for Group 3/4 encoding/decoding. > >>> $ > >>> > >>> Any ideas? > >> > >> A PPM is typically RGB, IIRC; try making sure it's 1-bit data first > >> (PBM). > > > > Thanks, Toby. The PPM that I get is from pdfimages, although the > > document is black and white. Is there some way of getting PBM from > > pdfimages? Or, alternatively, is there some way of converting from PPM > > to PBM without loosing resolution? > > Hi Paul, > > I assume you've looked at the file and it's a black and white bitmap? > In which case, you certainly can convert without losing any important > information (or resolution). Look into the NetPBM tools, or > GraphicsMagick... Thanks, Toby. Yes, my file is fully black and white. I am going to have a look at NetPBM. Paul |
|||||||