Page 1 of 1

convert failing on group4 tiff => pdf

Posted: 2012-05-18T09:16:24-07:00
by cgeen
HP-UX

I am attempting to use the convert utility to convert a multi-page b&w group4 tiff => pdf. This problem also occurs with a single page tiff.

I run from the command line...

convert convert_bw.tif convert_bw.tif.pdf
20120518: unable to open file `': No such file or directory @ error/tiff.c/WriteGROUP4Image/2040.

I am able to successfully convert a multipage color lzw tiff => pdf.

I am also able to successfully convert a multipage tiff that includes a combination of lzw & group4 images => pdf.

Is this a bug or an ImageMagick config problem?

Please help!

Thanks,

cgeen

Re: convert failing on group4 tiff => pdf

Posted: 2012-05-18T09:38:47-07:00
by fmw42
Post a link to one of your tiff files that fails.

Re: convert failing on group4 tiff => pdf

Posted: 2012-05-18T11:49:12-07:00
by cgeen
https://cisweb.courts.state.va.us/CisSt ... group4.tif

This is a multi-page Group4 tiff created with ImageMan by Data Techniques, Inc.

Thanks,

cgeen

Re: convert failing on group4 tiff => pdf

Posted: 2012-05-18T12:22:38-07:00
by fmw42
What version of IM are you using? IM has been undergoing some changes regarding sRGB that affect grayscale as well as bilevel images, since 6.7.5.5. On the current IM 6.7.6.10 Q16 (hdri), I am getting multiple page pdfs, but they are all totally white. But if I use IM 6.7.4.10, I get a result that is just fine.

A work around is

convert convert_group4.tif GIF:- | convert - convert_group4.pdf

However, this fails and is totally white also
convert convert_group4.tif MIFF:- | convert - convert_group4.pdf

Try upgrading your image to another version before 6.7.5.5. In the meantime, I will report this issue as bug in the current 6.7.6.10.

Re: convert failing on group4 tiff => pdf

Posted: 2012-05-18T12:57:59-07:00
by cgeen
Thank you. The workaround does work, although appears to take a bit longer.

I'm actually using version 6.7.4 downloaded from...

http://hpux.connect.org.uk/hppd/cgi-bin ... rch=Search

Do you suggest ImageMagick-6.7.4-10.tar.gz?

Thanks again for your prompt reply!

cgeen

Re: convert failing on group4 tiff => pdf

Posted: 2012-05-18T13:52:22-07:00
by fmw42
cgeen wrote:Thank you. The workaround does work, although appears to take a bit longer.

I'm actually using version 6.7.4 downloaded from...

http://hpux.connect.org.uk/hppd/cgi-bin ... rch=Search

Do you suggest ImageMagick-6.7.4-10.tar.gz?

Thanks again for your prompt reply!

cgeen

I don't think it should matter much. There could be a few bugs fixed (or something broken) between those two versions. So it is hard to say. The last minor version .10 typically is always archived. So it is easy to get from IM or SourceForge. But you may need some special compiled version for your platform. So I would just stick with what you have unless something else breaks.

But with the old 6.7.4.x version you don't need the work around. It should convert image.tiff image.pdf just fine. The workaround was for the more current versions of IM until all the bugs are worked out for the sRGB vs RGB switch.

Re: convert failing on group4 tiff => pdf

Posted: 2012-05-18T15:16:59-07:00
by magick
We can reproduce the problem you reported and have a patch. Look for it in the 6.7.7-0 release within a few days. Thanks.

Re: convert failing on group4 tiff => pdf

Posted: 2012-05-21T06:55:50-07:00
by cgeen
Thank you.

Is there a 6.7.7-0 binary available now for HP-UX? If so, can you tell me the title of the tar.gz file that I need?

I'm looking at http://www.imagemagick.org/script/binar ... 2l9f4#unix

Re: convert failing on group4 tiff => pdf

Posted: 2016-11-07T08:01:22-07:00
by beppecosta
I had the same problem with 6.5.9 then I decided to upgrade to 7.0 but with this version it seems impossible to get delegates for png.
Then I've downgraded to 6.8.8-9. png delegates are on, but it seems that the error while trying to convert a tiffg4 to pdf still exists.

convert cancellare.tif cancellare.pdf
error/tiff.c/WriteGROUP4Image/2204


note that and older gm (GraphicsMagick 1.3.12) converts fine

gm convert cancellare.tif cancellare.pdf
$


Thanks for support.
Giuseppe.