2007.08.28 15:47 "[Tiff] Bits/sample must be 1 for Group 3/4 encoding/decoding", by Paul Smith

2007.08.28 17:12 "Re: [Tiff] Bits/sample must be 1 for Group 3/4 encoding/decoding", by Toby Thain

On 28-Aug-07, at 1:50 PM, Paul Smith wrote:

On 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...

--Toby

>
> Paul

> _______________________________________________
> Tiff mailing list: Tiff@lists.maptools.org
> http://lists.maptools.org/mailman/listinfo/tiff
> http://www.remotesensing.org/libtiff/