Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

convert monochrome tiff to pdf produces invalid pdf #270

Open
plasticassius opened this issue Sep 20, 2023 · 2 comments
Open

convert monochrome tiff to pdf produces invalid pdf #270

plasticassius opened this issue Sep 20, 2023 · 2 comments

Comments

@plasticassius
Copy link

ImageMagick version

6.9.11-60

Operating system

Linux

Operating system, version and so on

Debian GNU/Linux 12 (bookworm)

Description

When converting 1 bit color depth tiff (black and white) to pdf, result will not display on Windows Adobe Reader 11.0.08.4 (with error "Insufficient data for an image). It displays with red and green instead of black and white on PDF-XChange 5.5. It displays fine on evince 43.1.

No problem when converting 8 bit color depth tiff to pdf.

Steps to Reproduce

convert -density 300 t1.tif -threshold 67% -monochrome -compress group4 t1.pdf
or
convert t1.tif t1.pdf

The following work ok:
convert -density 300 t8.tif -threshold 67% -monochrome -compress group4 t8.pdf
and
convert t8.tif t8.pdf

Interestingly enough,
convert -density 300 t8.tif -threshold 67% -monochrome -compress group4 t8.pdf
produces a smaller pdf than
convert -density 300 t1.tif -threshold 67% -monochrome -compress group4 t1.pdf

Images

t.zip

@urban-warrior
Copy link
Member

Can you try the latest ImageMagick release, 6.9.12-97? If the PDF produced by that release fails, let us know.

@plasticassius
Copy link
Author

I tried 6.9.12-97 Q16-HDRI in win10 and it works fine. Unfortunately the version on the Debain 12 (as well as 11) distribution is 6.9.11-60, which why I tried that version previously.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants