Hello,
I have installed IM and GS on unix :
convert -version
Version: ImageMagick 6.4.1 05/28/08 Q16 http://www.imagemagick.org
Copyright: Copyright (C) 1999-2008 ImageMagick Studio LLC
gs -version
GPL Ghostscript 8.15 (2004-09-22)
Copyright (C) 2004 artofcode LLC, Benicia, CA. All rights reserved.
I try to convert tiff from pdf file but there is something bad :
/usr/local/bin/convert -verbose test.pdf test.jpg
"gs" -q -dQUIET -dPARANOIDSAFER -dBATCH -dNOPAUSE -dNOPROMPT -dMaxBitmap=500000000 -dAlignToPixels=0 -dGridFitTT=0 "-sDEVICE=pam" -dTextAlphaBits=4 -dGraphicsAlphaBits=4 "-r72x72" -dUseCIEColor "-sOutputFile=/tmp/magick-XX1XDUL3" "-f/tmp/magick-XXQJQ1E6" "-f/tmp/magick-XXEexmy9"
Unknown device: pam
START 0 1511628 212182 1300844 15652 true 648 4 <1>
END PROCS 0 1531724 226609 1300844 17020 true 646 4 <1>
gs_std_e.ps 0 1531724 229305 1300844 18396 true 646 4 <1>
gs_il1_e.ps 0 1531724 231469 1300844 18396 true 646 4 <1>
END FONTDIR/ENCS 0 1531724 231591 1300844 18396 true 646 4 <1>
Unknown device: pam
START 10 1605984 299725 1300844 19616 true 648 5 <2>
END PROCS 10 1605984 310784 1320940 24312 true 646 5 <2>
gs_std_e.ps 10 1626080 316828 1320940 25688 true 646 5 <2>
gs_il1_e.ps 10 1626080 318992 1320940 25688 true 646 5 <2>
END FONTDIR/ENCS 10 1626080 319114 1320940 25688 true 646 5 <2>
Unknown device: pam
convert: Postscript delegate failed `test.pdf': No such file or directory.
convert: missing an image filename `test.jpg'.
or
/usr/local/bin/convert -debug all test.pdf test.jpg
2008-05-29T18:05:06+02:00 0:01 0.000u 6.4.1 Configure convert[6814]: utility.c/unknown/809/Configure
Command line: /usr/local/bin/convert {-debug} {all} {test.pdf} {test.jpg}
2008-05-29T18:05:06+02:00 0:01 0.000u 6.4.1 Configure convert[6814]: configure.c/unknown/482/Configure
Searching for configure file: "/usr/local/share/ImageMagick-6.4.1/config/coder.xml"
2008-05-29T18:05:06+02:00 0:01 0.000u 6.4.1 Configure convert[6814]: configure.c/unknown/482/Configure
Searching for configure file: "/usr/local/lib/ImageMagick-6.4.1/config/coder.xml"
2008-05-29T18:05:06+02:00 0:01 0.000u 6.4.1 Configure convert[6814]: configure.c/unknown/482/Configure
Searching for configure file: "/usr/local/share/doc/ImageMagick-6.4.1/coder.xml"
2008-05-29T18:05:06+02:00 0:01 0.000u 6.4.1 Configure convert[6814]: configure.c/unknown/482/Configure
Searching for configure file: "/usr/local/share/ImageMagick-6.4.1/coder.xml"
2008-05-29T18:05:06+02:00 0:01 0.000u 6.4.1 Configure convert[6814]: configure.c/unknown/482/Configure
Searching for configure file: "/root/.magick/coder.xml"
2008-05-29T18:05:06+02:00 0:01 0.000u 6.4.1 Configure convert[6814]: configure.c/unknown/482/Configure
Searching for configure file: "coder.xml"
2008-05-29T18:05:06+02:00 0:01 0.000u 6.4.1 Configure convert[6814]: coder.c/unknown/634/Configure
Loading coder map "/usr/local/share/ImageMagick-6.4.1/config/coder.xml" ...
2008-05-29T18:05:06+02:00 0:01 0.000u 6.4.1 Module convert[6814]: module.c/unknown/1077/Module
Searching for module "PDF" using filename "pdf.la"
2008-05-29T18:05:06+02:00 0:01 0.000u 6.4.1 Module convert[6814]: module.c/unknown/479/Module
Searching for coder module file "pdf.la" ...
2008-05-29T18:05:06+02:00 0:01 0.000u 6.4.1 Module convert[6814]: module.c/unknown/1097/Module
Opening module at path "/usr/local/lib/ImageMagick-6.4.1/modules-Q16/coders/pdf.la"
2008-05-29T18:05:06+02:00 0:01 0.000u 6.4.1 Module convert[6814]: module.c/unknown/1131/Module
Method "RegisterPDFImage" in module "PDF" at address 0xb7b2e000
2008-05-29T18:05:06+02:00 0:01 0.000u 6.4.1 Module convert[6814]: module.c/unknown/1146/Module
Method "UnregisterPDFImage" in module "PDF" at address 0xb7b2e1b0
2008-05-29T18:05:06+02:00 0:01 0.000u 6.4.1 Blob convert[6814]: blob.c/unknown/2356/Blob
read 3 magic header bytes
2008-05-29T18:05:06+02:00 0:01 0.000u 6.4.1 Cache convert[6814]: cache.c/unknown/2162/Cache
destroy
2008-05-29T18:05:06+02:00 0:01 0.000u 6.4.1 Configure convert[6814]: configure.c/unknown/482/Configure
Searching for configure file: "/usr/local/share/ImageMagick-6.4.1/config/magic.xml"
2008-05-29T18:05:06+02:00 0:01 0.000u 6.4.1 Configure convert[6814]: configure.c/unknown/482/Configure
Searching for configure file: "/usr/local/lib/ImageMagick-6.4.1/config/magic.xml"
2008-05-29T18:05:06+02:00 0:01 0.000u 6.4.1 Configure convert[6814]: configure.c/unknown/482/Configure
Searching for configure file: "/usr/local/share/doc/ImageMagick-6.4.1/magic.xml"
2008-05-29T18:05:06+02:00 0:01 0.000u 6.4.1 Configure convert[6814]: configure.c/unknown/482/Configure
Searching for configure file: "/usr/local/share/ImageMagick-6.4.1/magic.xml"
2008-05-29T18:05:06+02:00 0:01 0.000u 6.4.1 Configure convert[6814]: configure.c/unknown/482/Configure
Searching for configure file: "/root/.magick/magic.xml"
2008-05-29T18:05:06+02:00 0:01 0.000u 6.4.1 Configure convert[6814]: configure.c/unknown/482/Configure
Searching for configure file: "magic.xml"
2008-05-29T18:05:06+02:00 0:01 0.000u 6.4.1 Configure convert[6814]: magic.c/unknown/679/Configure
Loading magic map "/usr/local/share/ImageMagick-6.4.1/config/magic.xml" ...
2008-05-29T18:05:06+02:00 0:01 0.000u 6.4.1 Blob convert[6814]: blob.c/unknown/2356/Blob
read 3 magic header bytes
2008-05-29T18:05:06+02:00 0:01 0.000u 6.4.1 Cache convert[6814]: cache.c/unknown/2162/Cache
destroy
2008-05-29T18:05:06+02:00 0:01 0.000u 6.4.1 Blob convert[6814]: blob.c/unknown/2356/Blob
read 3 magic header bytes
2008-05-29T18:05:06+02:00 0:01 0.000u 6.4.1 Resource convert[6814]: resource.c/unknown/400/Resource
ExtGState
/OP true
/OPM 1
>>
endobj
2 0 obj
<<
/Type/ExtGState
/OP false
>>
endobj
3 0 obj
<<
/BitsPerComponent 8
/ColorSpace/DeviceCMYK
/Filter/DCTDecode
/Subtype/Image
/Height 679
/Type/XObject
/Length 301926
/Width 1400
>>
stream
ÿØÿà
2008-05-29T18:05:06+02:00 0:01 0.010u 6.4.1 Resource convert[6814]: resource.c/unknown/428/Resource
/tmp/magick-XX6h0lJI
2008-05-29T18:05:06+02:00 0:01 0.010u 6.4.1 Resource convert[6814]: resource.c/unknown/867/Resource
/tmp/magick-XX6h0lJI
2008-05-29T18:05:06+02:00 0:01 0.070u 6.4.1 Resource convert[6814]: resource.c/unknown/400/Resource
2008-05-29T18:05:06+02:00 0:01 0.070u 6.4.1 Resource convert[6814]: resource.c/unknown/428/Resource
/tmp/magick-XXtb1h1N
2008-05-29T18:05:06+02:00 0:01 0.070u 6.4.1 Configure convert[6814]: configure.c/unknown/482/Configure
Searching for configure file: "/usr/local/share/ImageMagick-6.4.1/config/delegates.xml"
2008-05-29T18:05:06+02:00 0:01 0.070u 6.4.1 Configure convert[6814]: configure.c/unknown/482/Configure
Searching for configure file: "/usr/local/lib/ImageMagick-6.4.1/config/delegates.xml"
2008-05-29T18:05:06+02:00 0:01 0.070u 6.4.1 Configure convert[6814]: configure.c/unknown/482/Configure
Searching for configure file: "/usr/local/share/doc/ImageMagick-6.4.1/delegates.xml"
2008-05-29T18:05:06+02:00 0:01 0.070u 6.4.1 Configure convert[6814]: configure.c/unknown/482/Configure
Searching for configure file: "/usr/local/share/ImageMagick-6.4.1/delegates.xml"
2008-05-29T18:05:06+02:00 0:01 0.070u 6.4.1 Configure convert[6814]: configure.c/unknown/482/Configure
Searching for configure file: "/root/.magick/delegates.xml"
2008-05-29T18:05:06+02:00 0:01 0.070u 6.4.1 Configure convert[6814]: configure.c/unknown/482/Configure
Searching for configure file: "delegates.xml"
2008-05-29T18:05:06+02:00 0:01 0.070u 6.4.1 Configure convert[6814]: delegate.c/unknown/1166/Configure
Loading delegate map "/usr/local/lib/ImageMagick-6.4.1/config/delegates.xml" ...
2008-05-29T18:05:06+02:00 0:01 0.070u 6.4.1 Resource convert[6814]: resource.c/unknown/400/Resource
test.pdf
2008-05-29T18:05:06+02:00 0:01 0.070u 6.4.1 Resource convert[6814]: resource.c/unknown/428/Resource
/tmp/magick-XXPYq5jT
Unknown device: pam
START 0 1511628 212182 1300844 15652 true 648 4 <1>
END PROCS 0 1531724 226609 1300844 17020 true 646 4 <1>
gs_std_e.ps 0 1531724 229305 1300844 18396 true 646 4 <1>
gs_il1_e.ps 0 1531724 231469 1300844 18396 true 646 4 <1>
END FONTDIR/ENCS 0 1531724 231591 1300844 18396 true 646 4 <1>
Unknown device: pam
START 10 1605984 299725 1300844 19616 true 648 5 <2>
END PROCS 10 1605984 310784 1320940 24312 true 646 5 <2>
gs_std_e.ps 10 1626080 316828 1320940 25688 true 646 5 <2>
gs_il1_e.ps 10 1626080 318992 1320940 25688 true 646 5 <2>
END FONTDIR/ENCS 20 1626080 319114 1320940 25688 true 646 5 <2>
Unknown device: pam
2008-05-29T18:05:06+02:00 0:01 0.070u 6.4.1 Resource convert[6814]: resource.c/unknown/867/Resource
/tmp/magick-XXtb1h1N
2008-05-29T18:05:06+02:00 0:01 0.070u 6.4.1 Resource convert[6814]: resource.c/unknown/867/Resource
/tmp/magick-XXPYq5jT
2008-05-29T18:05:06+02:00 0:01 0.070u 6.4.1 Resource convert[6814]: resource.c/unknown/867/Resource
/tmp/magick-XX6h0lJI
2008-05-29T18:05:06+02:00 0:01 0.070u 6.4.1 Locale convert[6814]: locale.c/unknown/498/Locale
Searching for locale file: "/usr/local/share/ImageMagick-6.4.1/config/locale.xml"
2008-05-29T18:05:06+02:00 0:01 0.070u 6.4.1 Locale convert[6814]: locale.c/unknown/498/Locale
Searching for locale file: "/usr/local/lib/ImageMagick-6.4.1/config/locale.xml"
2008-05-29T18:05:06+02:00 0:01 0.070u 6.4.1 Locale convert[6814]: locale.c/unknown/498/Locale
Searching for locale file: "/usr/local/share/doc/ImageMagick-6.4.1/locale.xml"
2008-05-29T18:05:06+02:00 0:01 0.070u 6.4.1 Locale convert[6814]: locale.c/unknown/498/Locale
Searching for locale file: "/usr/local/share/ImageMagick-6.4.1/locale.xml"
2008-05-29T18:05:06+02:00 0:01 0.070u 6.4.1 Locale convert[6814]: locale.c/unknown/498/Locale
Searching for locale file: "/root/.magick/locale.xml"
2008-05-29T18:05:06+02:00 0:01 0.070u 6.4.1 Locale convert[6814]: locale.c/unknown/498/Locale
Searching for locale file: "locale.xml"
2008-05-29T18:05:06+02:00 0:01 0.070u 6.4.1 Configure convert[6814]: locale.c/unknown/831/Configure
Loading locale map "/usr/local/lib/ImageMagick-6.4.1/config/locale.xml" ...
2008-05-29T18:05:06+02:00 0:01 0.070u 6.4.1 Configure convert[6814]: locale.c/unknown/831/Configure
Loading locale map "/usr/local/lib/ImageMagick-6.4.1/config/english.xml" ...
2008-05-29T18:05:06+02:00 0:01 0.100u 6.4.1 Exception convert[6814]: pdf.c/unknown/575/Exception
Postscript delegate failed `test.pdf': No such file or directory
2008-05-29T18:05:06+02:00 0:01 0.100u 6.4.1 Exception convert[6814]: convert.c/unknown/2651/Exception
missing an image filename `test.jpg'
convert: Postscript delegate failed `test.pdf': No such file or directory.
convert: missing an image filename `test.jpg'.
I think it's possible that it's GS the problem !
gs test.pdf
GPL Ghostscript 8.15 (2004-09-22)
Copyright (C) 2004 artofcode LLC, Benicia, CA. All rights reserved.
This software comes with NO WARRANTY: see the file PUBLIC for details.
Processing pages 1 through 1.
Page 1
GPL Ghostscript 8.15: **** Could not open the file .
Error: /invalidfileaccess in --.outputpage--
Operand stack:
1 true
Execution stack:
%interp_exit .runexec2 --nostringval-- --nostringval-- --nostringval-- 2 %stopped_push --nostringval-- --nostringval-- --nostringval-- false 1 %stopped_push 1 3 %oparray_pop 1 3 %oparray_pop 1 3 %oparray_pop --nostringval-- --nostringval-- 2 1 1 --nostringval-- %for_pos_int_continue --nostringval-- --nostringval-- 0 9 %oparray_pop --nostringval-- --nostringval--
Dictionary stack:
--dict:1111/1686(ro)(G)-- --dict:0/20(G)-- --dict:75/200(L)-- --dict:75/200(L)-- --dict:104/127(ro)(G)-- --dict:238/347(ro)(G)-- --dict:20/24(L)-- --dict:4/6(L)-- --dict:21/32(L)--
Current allocation mode is local
Last OS error: 2
GPL Ghostscript 8.15: Unrecoverable error, exit code 1
Is the GS version is wrong or too old? GS need other lib?
Could you help me?
Thx
Convert pdf to tiff
Re: Convert pdf to tiff
more precision :
convert -list configure
Path: /usr/local/lib/ImageMagick-6.4.1/config/configure.xml
Name Value
-------------------------------------------------------------------------------
CC gcc
CFLAGS -g -O2 -Wall -W -pthread
CONFIGURE ./configure --with-ttf=yes --with-xml=yes --with-zlib=yes --with-magick-plus-plus=yes --with-png=yes --with-jpeg=yes --with-freetype=yes --with-jp2=yes --with-wmf=yes --with-tiff=yes
COPYRIGHT Copyright (C) 1999-2008 ImageMagick Studio LLC
CPPFLAGS -I/usr/local/include/ImageMagick
CXX g++
CXXFLAGS -g -O2 -Wall -W -pthread
DEFS -DHAVE_CONFIG_H
DELEGATES bzlib freetype jpeg png tiff xml zlib
DISTCHECK_CONFIG_FLAGS --disable-deprecate --with-quantum-depth=16 --with-djvu=no --with-umem=no --with-fontpath= --with-fontconfig=no --with-lqr=no --with-rsvg=no
EXEC-PREFIX /usr/local
HOST i686-pc-linux-gnu
LDFLAGS -L/usr/local/lib -lfreetype -lz -L/usr/local/lib
LIB_VERSION 0x641
LIB_VERSION_NUMBER 6,4,1,3
LIBS -lMagickCore -ltiff -lfreetype -ljpeg -lbz2 -lz -lm -lpthread
NAME ImageMagick
PCFLAGS
PREFIX /usr/local
QuantumDepth 16
RELEASE_DATE 05/28/08
VERSION 6.4.1
WEBSITE http://www.imagemagick.org
Must I add gs in DELEGATE line? In another line?
please help!
Thx
convert -list configure
Path: /usr/local/lib/ImageMagick-6.4.1/config/configure.xml
Name Value
-------------------------------------------------------------------------------
CC gcc
CFLAGS -g -O2 -Wall -W -pthread
CONFIGURE ./configure --with-ttf=yes --with-xml=yes --with-zlib=yes --with-magick-plus-plus=yes --with-png=yes --with-jpeg=yes --with-freetype=yes --with-jp2=yes --with-wmf=yes --with-tiff=yes
COPYRIGHT Copyright (C) 1999-2008 ImageMagick Studio LLC
CPPFLAGS -I/usr/local/include/ImageMagick
CXX g++
CXXFLAGS -g -O2 -Wall -W -pthread
DEFS -DHAVE_CONFIG_H
DELEGATES bzlib freetype jpeg png tiff xml zlib
DISTCHECK_CONFIG_FLAGS --disable-deprecate --with-quantum-depth=16 --with-djvu=no --with-umem=no --with-fontpath= --with-fontconfig=no --with-lqr=no --with-rsvg=no
EXEC-PREFIX /usr/local
HOST i686-pc-linux-gnu
LDFLAGS -L/usr/local/lib -lfreetype -lz -L/usr/local/lib
LIB_VERSION 0x641
LIB_VERSION_NUMBER 6,4,1,3
LIBS -lMagickCore -ltiff -lfreetype -ljpeg -lbz2 -lz -lm -lpthread
NAME ImageMagick
PCFLAGS
PREFIX /usr/local
QuantumDepth 16
RELEASE_DATE 05/28/08
VERSION 6.4.1
WEBSITE http://www.imagemagick.org
Must I add gs in DELEGATE line? In another line?
please help!
Thx