convert failing on group4 tiff => pdf

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
cgeen
Posts: 4
Joined: 2012-05-18T09:11:01-07:00
Authentication code: 13

convert failing on group4 tiff => pdf

Post 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
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: convert failing on group4 tiff => pdf

Post by fmw42 »

Post a link to one of your tiff files that fails.
cgeen
Posts: 4
Joined: 2012-05-18T09:11:01-07:00
Authentication code: 13

Re: convert failing on group4 tiff => pdf

Post 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
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: convert failing on group4 tiff => pdf

Post 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.
Last edited by fmw42 on 2012-05-18T15:41:16-07:00, edited 1 time in total.
cgeen
Posts: 4
Joined: 2012-05-18T09:11:01-07:00
Authentication code: 13

Re: convert failing on group4 tiff => pdf

Post 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
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: convert failing on group4 tiff => pdf

Post 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.
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: convert failing on group4 tiff => pdf

Post 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.
cgeen
Posts: 4
Joined: 2012-05-18T09:11:01-07:00
Authentication code: 13

Re: convert failing on group4 tiff => pdf

Post 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
beppecosta
Posts: 5
Joined: 2016-11-02T09:06:34-07:00
Authentication code: 1151

Re: convert failing on group4 tiff => pdf

Post 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.
Post Reply