unipdf icon indicating copy to clipboard operation
unipdf copied to clipboard

Compress: Encode binary images as CCITTFaxDecode

Open gunnsth opened this issue 5 years ago • 5 comments

The CCITTFaxDecode filter (and JBIG2 which is under development) is particularly well suited for encoding binary images (0/1). Images for optimization that are binary (DeviceGray and/or BitsPerComponent 1) should be encoded with CCITTFaxDecode filter.

gunnsth avatar Apr 19 '19 17:04 gunnsth

XObject Image: R8 Error: CCITTFaxDecode encoding is not yet implemented

+1 also seeing this, is there a timeline for CCITTFaxDecode encoding support?

Thanks!

jasonlor avatar Jul 26 '19 19:07 jasonlor

What version of unipdf are you using? CCITTFaxDecode is supported for both decoding and encoding since v3.0.0.

gunnsth avatar Jul 26 '19 19:07 gunnsth

I was using an older version defined by the examples on the website.

https://unidoc.io/examples/image/extract_images

jasonlor avatar Jul 26 '19 19:07 jasonlor

@jasonlor Unfortunately the examples section on the website is obsolete. We are working on a site refresh. Our GitHub examples repository is up to date: https://github.com/unidoc/unipdf-examples

gunnsth avatar Jul 27 '19 07:07 gunnsth

Thanks!

jasonlor avatar Jul 29 '19 06:07 jasonlor