Bug in convert related to compression fax and group4

Post any defects you find in the released or beta versions of the ImageMagick software here. Include the ImageMagick version, OS, and any command-line required to reproduce the problem. Got a patch for a bug? Post it here.
Post Reply
torwag
Posts: 1
Joined: 2016-10-04T01:51:01-07:00
Authentication code: 1151

Bug in convert related to compression fax and group4

Post by torwag »

Hi,
I wrote a bash script to manage scans in my workflow. This scripts scans the documents from an ADF-scanner and creates a single PDF out of it. Recently, all pages I scan turn out to be white in the PDF, albeit and strangely, I can see a preview image (thumbnail).

I digged into this problem and figured out that this happens during the convert process. The scan itself is ok, the tif files are good
e.g.

Code: Select all

scanimage  --ald="yes" --page-height=297 -y 297 --contrast=50 --mode=lineart --resolution=200 --batch=out%04d.tif --format=tiff --source="ADF Front"
works as desired.

However,

Code: Select all

convert *.tif -compress Fax test_temp.pdf
ends up in a pdf that has the right amount of pages but all pages are white. I tried different PDF readers with different backends but none seem to work.
The same happens for -compress Group4.

However,

Code: Select all

convert *.tif -compress zip test_temp.pdf
works ok.

The compression by 'fax' tends out to produce much smaller pdfs then any other compression method. Since I only need the scans for archiving, I prefer as small files as possible.
It worked out well for many years now.
Thus, I wonder maybe some recent changes broke the old behaviour?!
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Bug in convert related to compression fax and group4

Post by fmw42 »

What is your IM version and platform? Please always provide that. Can you upload an example tif to some place such as dropbox.com and put the URL here so we can test with it.
Post Reply