Hi there,
I'm fairly new to imagemagick, but have managed to download and build the latest source for UNIX. I'm able to convert between nearly all image types, (e.g. foo.tif to foo.jpg works great) however when I try and convert between tif and pdf I get some pretty strange errors:
convert 10100_p2.tif 10100_p2.pdf
/SAN/magick-XXBqaq8R: No space to read TIFF directory.
/SAN/magick-XXCqaq8R: No space to read TIFF directory.
convert: unable to open file `10100_p2.pdf': No such file or directory @ compress.c/Huffman2DEncodeImage/1009.
Now the tmpdir(/SAN) has 500Gig free on it, so the "No Space" message is totally misleading... Does anyone have any ideas about this?
This is running on a SUN Sparc V440 Solaris 8 environment :
convert --version
Version: ImageMagick 6.5.4-2 %F Q16 http://www.imagemagick.org
Copyright: Copyright (C) 1999-2009 ImageMagick Studio LLC
I also installed the following packages prior to building and installing imagemagick:
jpeg-6b-sol8-sparc-local
lcms-1.17-sol8-sparc-local
expat-2.0.1-sol8-sparc-local
libxml2-2.6.31-sol8-sparc-local
fontconfig-2.4.2-sol8-sparc-local
freetype-2.3.9-sol8-sparc-local
tiff-3.8.2-sol8-sparc-local
imagemagick-6.5.1-sol8-sparc-local
Thanks
Rick
PS if I do an Identify on the source img :
identify 10100_p2.tif
10100_p2.tif TIFF 2502x3694 2502x3694+0+0 1-bit Bilevel DirectClass 79kb
Problem converting TIFF to PDF
Re: Problem converting TIFF to PDF
Can you post a URL to your TIFF image file so we can download it and reproduce the problem? The conversion works for us on our TIFF images under Linux and Windows. Its possible that there is a problem with huffman encoding under Solaris. You can get around the problem by changing the compression to fax:
- convert 10100_p2.tif -compress fax 10100_p2.pdf
Re: Problem converting TIFF to PDF
Thanks for quick reply : here is a sample image.
http://sampletiff.hostoi.com/sample.zip
it isnt clear from your posting how to change the encoding to G3 - your sytnax looks the same as mine
Thanks
Rick
http://sampletiff.hostoi.com/sample.zip
it isnt clear from your posting how to change the encoding to G3 - your sytnax looks the same as mine

Thanks
Rick
Re: Problem converting TIFF to PDF
Your image converted without complaint for us on our systems with ImageMagick 6.5.4-2. The problem may be within the TIFF delegate library, we can't be sure. In the mean-time, try fax compression.
Re: Problem converting TIFF to PDF
Garrrgh. Kill me - still no closer to resoloution after plowing though the code all day.
In response to the previous message : Im using tiff-3.8.2-sol8-sparc-local tiff library. Which version are you guys running?
Also - very intresting to note that the install I did (make -k -i install) didnt copy the delegates.xml file to the /usr/local/share/ImageMagick/config dir. However copying from the build directory manually didnt help at all.
When you say try using fax compression - do you mean during the creation of the source image? If so this is a no go - the images are historical doucments that are already in the TIFF format. If you mean during conversion then using the following command results in the same error message:
convert -compress Fax asd.tif to asd.pdf
In response to the previous message : Im using tiff-3.8.2-sol8-sparc-local tiff library. Which version are you guys running?
Also - very intresting to note that the install I did (make -k -i install) didnt copy the delegates.xml file to the /usr/local/share/ImageMagick/config dir. However copying from the build directory manually didnt help at all.
When you say try using fax compression - do you mean during the creation of the source image? If so this is a no go - the images are historical doucments that are already in the TIFF format. If you mean during conversion then using the following command results in the same error message:
convert -compress Fax asd.tif to asd.pdf
Re: Problem converting TIFF to PDF
Perhaps the problem is when reading the TIFF image, try
- convert 10100_p2.tif 10100_p2.jpg
Re: Problem converting TIFF to PDF
Yep - I can confirm that conversion to JPG works :
convert asd.tif asd.jpg
Works like a charm - infact i've tried nearly every other format and all manage to convert the tif. It is only when the destination type is PDF does this fail. In addition to this, I can also convert jpg, png, gif etc to PDF without any problems.
I've downloaded the windows version and can confirm that it works ok on that, but the solaris 8 server is an absoloute requirement for this soloution as we have to leverge existing infastructre.
convert asd.tif asd.jpg
Works like a charm - infact i've tried nearly every other format and all manage to convert the tif. It is only when the destination type is PDF does this fail. In addition to this, I can also convert jpg, png, gif etc to PDF without any problems.
I've downloaded the windows version and can confirm that it works ok on that, but the solaris 8 server is an absoloute requirement for this soloution as we have to leverge existing infastructre.
Re: Problem converting TIFF to PDF
The last option is to use some other compression other than fax. You can try RLE, LZW, or ZIP:
- convert image.tif -compress zip image.pdf
Re: Problem converting TIFF to PDF
I am getting the same error on a SPARC Solaris 10 machine with ImageMagick-6.5.4-3 on a bi tonal G4 compressed tiff converting to pdf.
Using zip/lzw compression works well but the output file is 4 times larger then the original.
In Linux everything works well and the file size using fax compression or unspecified compression is in the same range as the original.
Using zip/lzw compression works well but the output file is 4 times larger then the original.
In Linux everything works well and the file size using fax compression or unspecified compression is in the same range as the original.
Re: Problem converting TIFF to PDF
Hello,
Is there a solution for the original problem with the tiff delegate libraries? I have tried the work arounds such as using "-compress zip". It seems to work most of the time but not all of the time. Also some of the documents don't look nearly as good as those converted under Windows. I am trying to convert tiff to pdf under Solaris 10. The version we are using is 6.6.2. Any help or insight is greatly appreciated.
Thank You!
Is there a solution for the original problem with the tiff delegate libraries? I have tried the work arounds such as using "-compress zip". It seems to work most of the time but not all of the time. Also some of the documents don't look nearly as good as those converted under Windows. I am trying to convert tiff to pdf under Solaris 10. The version we are using is 6.6.2. Any help or insight is greatly appreciated.
Thank You!