2015.01.25 15:44 "[Tiff] How to generate JBIG encoded TIFFs?", by Ludolf Holzheid
Hello List,
I compiled libtiff with JBIG support, but I can't get tiffcp to write the output JBIG encoded (and yes, the input is bi-level data).
If I try to control the conversion with the -t/-s/-r/-l/-w flags, I get varying error messages, but in no case tiffcp writes any output (see log attached).
Is this supposed to work?
Ludolf
--
Ludolf Holzheid [ˈluˑ.doːlf ˈhɔlts.haɪd]
Heinrichstraße 6 [ˈhaɪn.ʀɪçˌʃtʀɑː.sə 6]
68642 Bürstadt [68642 ˈbyːʁ.ʃtat]
PGP key fingerprint: 92DC 63E6 B2CD BCFD 8A6C E390 6306 0DA6 4629 72FB
$ tiffinfo test-in.tiff
TIFF Directory at offset 0x72e2 (29410)
Image Width: 2481 Image Length: 3507
Bits/Sample: 1
Compression Scheme: CCITT Group 4
Photometric Interpretation: min-is-white
FillOrder: msb-to-lsb
Samples/Pixel: 1
Rows/Strip: 26
Planar Configuration: single image plane
DocumentName: /tmp/fileMw2vfJ
ImageDescription: converted PNM file
$ tiffcp -c jbig test-in.tiff test-out.tiff JBIG: Multistrip images not supported in encoder. test-out.tiff: Error, can't write strip 0.
$ tiffcp -t -c jbig test-in.tiff test-out.tiff test-out.tiff: ISO JBIG tile encoding is not implemented.
test-out.tiff: ISO JBIG tile encoding is not implemented.
...
$ tiffcp -s -c jbig test-in.tiff test-out.tiff JBIG: Multistrip images not supported in encoder. test-out.tiff: Error, can't write strip 0.
$ tiffcp -s -r-1 -c jbig test-in.tiff test-out.tiff test-out.tiff: ISO JBIG scanline encoding is not implemented.
test-out.tiff: Error, can't write scanline 0.
$ tiffcp -t -l5000 -w5000 -c jbig test-in.tiff test-out.tiff test-out.tiff: ISO JBIG tile encoding is not implemented.