Convert does not work

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.
guasaner
Posts: 9
Joined: 2011-05-06T13:43:34-07:00
Authentication code: 8675308

Convert does not work

Post by guasaner »

I have a error that I can't fix, need help on this one,

this is the error I get, hope somebody can help me

Error: /ioerror in --showpage--
Operand stack:
--nostringval-- 1 true
Execution stack:
%interp_exit .runexec2 --nostringval-- --nostringval-- --nostringval-- 2 %stopped_push --nostringval-- --nostringval-- --nostringval-- false 1 %stopped_push 1905 1 3 %oparray_pop 1904 1 3 %oparray_pop 1888 1 3 %oparray_pop --nostringval-- --nostringval-- 2 1 3 --nostringval-- %for_pos_int_continue --nostringval-- --nostringval-- 1777 1 9 %oparray_pop --nostringval-- --nostringval--
Dictionary stack:
--dict:1159/1684(ro)(G)-- --dict:1/20(G)-- --dict:97/200(L)-- --dict:97/200(L)-- --dict:108/127(ro)(G)-- --dict:275/300(ro)(G)-- --dict:22/25(L)-- --dict:4/6(L)-- --dict:24/40(L)--
Current allocation mode is local
Last OS error: 28
GPL Ghostscript 8.62: Unrecoverable error, exit code 1
convert: Postscript delegate failed `/thinkMarriageMX66E.pdf': 0RHf.cache @ error/pdf.c/ReadPDFImage/638.
convert: missing an image filename `/thinkMarriageMXB69.png' @ error/convert.c/ConvertImageCommand/2940.
User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Re: Convert does not work

Post by anthony »

Sounds like a ghostscript issue. Make sure it is the latest ghostscript.

Also try your pdf directly with ghostscript and see if it is working.
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
guasaner
Posts: 9
Joined: 2011-05-06T13:43:34-07:00
Authentication code: 8675308

Re: Convert does not work

Post by guasaner »

I installed the latest version of ghostscript , but now I getting this error

sh: gs: command not found
convert: Postscript delegate failed `CreacionArt.pdf': w6le.cache @ error/pdf.c/ReadPDFImage/638.
convert: missing an image filename `creacion.png' @ error/convert.c/ConvertImageCommand/2940.


what I am doing wrong?

Thanks
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Convert does not work

Post by fmw42 »

Sounds like it did not get fully installed. type

convert -list configure

look at the line starting with DELEGATES and see if it contains gs.

Did you re-install IM after installing Ghostscript? You need to do that.

What platform and OS are you using?
guasaner
Posts: 9
Joined: 2011-05-06T13:43:34-07:00
Authentication code: 8675308

Re: Convert does not work

Post by guasaner »

I did a apt-get update && apt-get install ghostscript and now I'm getting this



Error: /ioerror in --showpage--
Operand stack:
1 true
Execution stack:
%interp_exit .runexec2 --nostringval-- --nostringval-- --nostringval-- 2 %stopped_push --nostringval-- --nostringval-- --nostringval-- false 1 %stopped_push 1910 1 3 %oparray_pop 1909 1 3 %oparra y_pop 1893 1 3 %oparray_pop --nostringval-- --nostringval-- 2 1 1 --nostringval-- %for_pos_int_co ntinue --nostringval-- --nostringval-- 1793 0 9 %oparray_pop --nostringval-- --nostringval--
Dictionary stack:
--dict:1164/1684(ro)(G)-- --dict:1/20(G)-- --dict:82/200(L)-- --dict:82/200(L)-- --dict:108/127(ro)(G)-- - -dict:295/300(ro)(G)-- --dict:23/30(L)-- --dict:6/8(L)-- --dict:21/40(L)--
Current allocation mode is local
Last OS error: 28
GPL Ghostscript 9.02: Unrecoverable error, exit code 1
convert: Postscript delegate failed `CreacionArt.pdf': gEmj.cache @ error/pdf.c/ReadPDFImage/638.
convert: missing an image filename `CreacionArt.png' @ error/convert.c/ConvertImageCommand/2940.

I did not re-install IM after this, I will try it

I'm using Linux version 2.6.26-2-amd64 (Debian 2.6.26-26lenny2) (dannf@debian.org) (gcc version 4.1.3 20080704 (prerelease) (Debian 4.1.2-25)) #1 SMP Tue Jan 25 05:59:43 UTC 2011
guasaner
Posts: 9
Joined: 2011-05-06T13:43:34-07:00
Authentication code: 8675308

Re: Convert does not work

Post by guasaner »

I re-install IM but I'm still getting this


Error: /ioerror in --showpage--
Operand stack:
1 true
Execution stack:
%interp_exit .runexec2 --nostringval-- --nostringval-- --nostringval-- 2 %stopped_push --nostringval-- --nostringval-- --nostringval-- false 1 %stopped_push 1910 1 3 %oparray_pop 1909 1 3 %oparray_pop 1893 1 3 %oparray_pop --nostringval-- --nostringval-- 2 1 1 --nostringval-- %for_pos_int_continue --nostringval-- --nostringval-- 1793 0 9 %oparray_pop --nostringval-- --nostringval--
Dictionary stack:
--dict:1164/1684(ro)(G)-- --dict:1/20(G)-- --dict:82/200(L)-- --dict:82/200(L)-- --dict:108/127(ro)(G)-- --dict:295/300(ro)(G)-- --dict:23/30(L)-- --dict:6/8(L)-- --dict:21/40(L)--
Current allocation mode is local
Last OS error: 28
GPL Ghostscript 9.02: Unrecoverable error, exit code 1
convert: Postscript delegate failed `CreacionArt.pdf': PEXw.cache @ error/pdf.c/ReadPDFImage/638.
convert: missing an image filename `CreacionArt.png' @ error/convert.c/ConvertImageCommand/2940.


What can I do?
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Convert does not work

Post by fmw42 »

As I asked before, what do you get when you type

convert -list configure

Look at the line starting with DELEGATES and see if it contains gs. If not, then IM does not know about GS or some delegate needed by GS is missing and GS did not install correctly.
guasaner
Posts: 9
Joined: 2011-05-06T13:43:34-07:00
Authentication code: 8675308

Re: Convert does not work

Post by guasaner »

this is what I get


Path: /usr/lib/ImageMagick-6.6.0/config/configure.xml

Name Value
-------------------------------------------------------------------------------
CC gcc -std=gnu99 -std=gnu99
CFLAGS -I/usr/include/lqr-1 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/i nclude -fopenmp -g -O2 -Wall -W -pthread
CONFIGURE ./configure '--prefix=/usr' '--mandir=${prefix}/share/man' '--inf odir=${prefix}/share/info' '--with-modules' '--with-gs-font-dir=/usr/share/fonts /type1/gsfonts' '--with-magick-plus-plus' '--with-djvu' '--enable-shared' '--wit hout-dps' '--without-fpx' '--with-perl-options=INSTALLDIRS=vendor' '--x-includes =/usr/include/X11' '--x-libraries=/usr/lib/X11' 'CFLAGS=-g -O2' 'LDFLAGS=' 'CPPF LAGS=' 'CXXFLAGS=-g -O2'
COPYRIGHT Copyright (C) 1999-2010 ImageMagick Studio LLC
CPPFLAGS -I/usr/include/ImageMagick
CXX g++
CXXFLAGS -g -O2 -Wall -W -pthread
DEFS -DHAVE_CONFIG_H
DELEGATES bzlib djvu fontconfig freetype gvc jpeg jng jp2 lcms lqr openexr p ng rsvg tiff x11 xml wmf zlib
DISTCHECK_CONFIG_FLAGS 'CFLAGS=-g -O2' 'CPPFLAGS=' 'LDFLAGS=' --disable-deprecat ed --with-quantum-depth=16 --with-umem=no --with-autotrace=no --with-dps=no --wi th-fpx=no --with-gslib=no --with-fontpath= --with-gs-font-dir=/usr/share/fonts/t ype1/gsfonts
EXEC-PREFIX /usr
HOST x86_64-unknown-linux-gnu
LDFLAGS -L/usr/lib -L/usr/lib/X11
LIB_VERSION 0x660
LIB_VERSION_NUMBER 6,6,0,4
LIBS -lMagickCore -llcms -ltiff -lfreetype -ljpeg -llqr-1 -lglib-2.0 -l fontconfig -lXext -lSM -lICE -lX11 -lXt -lbz2 -lz -lm -lgomp -lpthread -lltdl
NAME ImageMagick
PCFLAGS -fopenmp
PREFIX /usr
QuantumDepth 16
RELEASE_DATE 2010-11-16
VERSION 6.6.0
WEBSITE http://www.imagemagick.org

Path: [built-in]

Name Value
-------------------------------------------------------------------------------
NAME ImageMagick



It does not say anything about gs, how can I fix this?

Thanks
User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Re: Convert does not work

Post by anthony »

If you install the latest ghostscript and re-install the latest Imagemagick everything should be fine.
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
guasaner
Posts: 9
Joined: 2011-05-06T13:43:34-07:00
Authentication code: 8675308

Re: Convert does not work

Post by guasaner »

Still having the same problem,

I re-install ghostcript and ImageMagick and this is what I get


convert CreacionArt.pdf CreacionArt.png
Error: /ioerror in --showpage--
Operand stack:
1 true
Execution stack:
%interp_exit .runexec2 --nostringval-- --nostringval-- --nostringval-- 2 %stopped_push --nostringval-- --nostringval-- --nostringval-- false 1 %stopped_push 1910 1 3 %oparray_pop 1909 1 3 %oparray_pop 1893 1 3 %oparray_pop --nostringval-- --nostringval-- 2 1 1 --nostringval-- %for_pos_int_continue --nostringval-- --nostringval-- 1793 0 9 %oparray_pop --nostringval-- --nostringval--
Dictionary stack:
--dict:1164/1684(ro)(G)-- --dict:1/20(G)-- --dict:82/200(L)-- --dict:82/200(L)-- --dict:108/127(ro)(G)-- --dict:295/300(ro)(G)-- --dict:23/30(L)-- --dict:6/8(L)-- --dict:21/40(L)--
Current allocation mode is local
Last OS error: 28
GPL Ghostscript 9.02: Unrecoverable error, exit code 1
convert: Postscript delegate failed `CreacionArt.pdf': YtCK.cache @ error/pdf.c/ReadPDFImage/638.
convert: missing an image filename `CreacionArt.png' @ error/convert.c/ConvertImageCommand/2940.


Is there another way to fix this?

Thanks
User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Re: Convert does not work

Post by anthony »

It is looking more like you PDF is not right in some way!
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
guasaner
Posts: 9
Joined: 2011-05-06T13:43:34-07:00
Authentication code: 8675308

Re: Convert does not work

Post by guasaner »

I've tried with 3 different files and still getting the same error :(

any ideas?
User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Re: Convert does not work

Post by anthony »

Post the PDF and let us see if it works on our systems -- if you are allowed.
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
guasaner
Posts: 9
Joined: 2011-05-06T13:43:34-07:00
Authentication code: 8675308

Re: Convert does not work

Post by guasaner »

This is the url

http://www.cuidameplis.com/testFile.pdf

I could not find the way to attach the pdf to this post


Thanks
User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Re: Convert does not work

Post by anthony »

guasaner wrote:This is the url

http://www.cuidameplis.com/testFile.pdf

I could not find the way to attach the pdf to this post
You did it the right way!

running ghostscript directly...

Code: Select all

  gs testFile.pdf
Some warnings about fonts and font substitutions ghostscript made it it loaded and displayed fine!

Code: Select all

convert testFile.pdf show:
PDF converted to image at 72dpi and displayed without error (smaller than it should for my display)
Resultant image had a transparent background.

No errors at all!
Imagemagick version 6.6.9-9 2011-05-10 Q16
Ghostscript version 8.71 (2010-02-10)
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
Post Reply