rangecheck error in .image3x converting PDFs to JPEG

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
georgem

rangecheck error in .image3x converting PDFs to JPEG

Post by georgem »

This is my command:
convert -colorspace RGB /home/joyce/media/upload/05arev.pdf[0] -resize 350X450 -quality 70 -colorspace RGB /home/joyce/media/upload/preview/preview_4c866e5ab8da6.jpg

I get the following error message:

Error: /rangecheck in --.image3x--
Operand stack:
--dict:11/11(L)-- --nostringval-- --dict:4/5(L)--
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-- 2 1 1 --nostringval-- %for_pos_int_continue --nostringval-- --nostringval-- --nostringval-- --nostringval-- 1 %stopped_push --nostringval-- --nostringval-- %array_continue --nostringval-- false 1 %stopped_push --nostringval-- %loop_continue --nostringval-- 99293 --nostringval-- 3 11 %oparray_pop --nostringval-- --nostringval--
Dictionary stack:
--dict:1071/1123(ro)(G)-- --dict:0/20(G)-- --dict:93/200(L)-- --dict:93/200(L)-- --dict:97/127(ro)(G)-- --dict:229/230(ro)(G)-- --dict:19/24(L)-- --dict:4/6(L)-- --dict:23/31(L)-- --dict:1/1(ro)(G)-- --dict:7/8(L)--
Current allocation mode is local
GNU Ghostscript 7.07: Unrecoverable error, exit code 1
convert: Postscript delegate failed `/home/joyce/media/upload/05arev.pdf': No such file or directory @ pdf.c/ReadPDFImage/612.
convert: missing an image filename `/home/joyce/media/upload/preview/preview_4c866e5ab8da6.jpg' @ convert.c/ConvertImageCommand/2710.

Another post with this error indicate a configuration problem relating to the location of fonts for Ghostscript, but that doesn't seem to be the case here.

When I list my configuration I get:

convert -list configure

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

Code: Select all

Name          Value
-------------------------------------------------------------------------------
CC            gcc -std=gnu99
CFLAGS        -g -O2 -Wall -W -pthread
CONFIGURE     ./configure  '--prefix=/usr' '--with-gs-font-dir=/usr/share/fonts/default/Type1' '--with-magick-plus-plus' '--with-djvu' '--enable-shared' '--without-dps' '--without-fpx' '--without-perl'
COPYRIGHT     Copyright (C) 1999-2009 ImageMagick Studio LLC
CPPFLAGS      -I/usr/include/ImageMagick
CXX           g++
CXXFLAGS      -g -O2 -Wall -W -pthread
DEFS          -DHAVE_CONFIG_H
DELEGATES     bzlib fontconfig freetype jpeg png tiff x11 xml zlib
DISTCHECK_CONFIG_FLAGS --disable-deprecated --with-quantum-depth=16 --with-umem=no --with-autotrace=no --with-dps=no --with-fpx=no --with-fontpath= --with-gs-font-dir=/usr/share/fonts/default/Type1
EXEC-PREFIX   /usr
HOST          i686-pc-linux-gnu
LDFLAGS       -L/usr/lib -L/usr/X11R6/lib -lfreetype -lz
LIB_VERSION   0x646
LIB_VERSION_NUMBER 6,4,6,9
LIBS          -lMagickCore -ltiff -lfreetype -ljpeg -lfontconfig -lXext -lSM -lICE -lX11 -lXt -lbz2 -lz -lm -lpthread 
NAME          ImageMagick
PCFLAGS       
PREFIX        /usr
QuantumDepth  16
RELEASE_DATE  2009-02-26
VERSION       6.4.6
WEBSITE       http://www.imagemagick.org

Path: configure.xml

Name          Value
-------------------------------------------------------------------------------
CC            gcc -std=gnu99
CFLAGS        -g -O2 -Wall -W -pthread
CONFIGURE     ./configure  '--prefix=/usr' '--with-gs-font-dir=/usr/share/fonts/default/Type1' '--with-magick-plus-plus' '--with-djvu' '--enable-shared' '--without-dps' '--without-fpx' '--without-perl'
COPYRIGHT     Copyright (C) 1999-2009 ImageMagick Studio LLC
CPPFLAGS      -I/usr/include/ImageMagick
CXX           g++
CXXFLAGS      -g -O2 -Wall -W -pthread
DEFS          -DHAVE_CONFIG_H
DELEGATES     bzlib fontconfig freetype jpeg png tiff x11 xml zlib
DISTCHECK_CONFIG_FLAGS --disable-deprecated --with-quantum-depth=16 --with-umem=no --with-autotrace=no --with-dps=no --with-fpx=no --with-fontpath= --with-gs-font-dir=/usr/share/fonts/default/Type1
EXEC-PREFIX   /usr
HOST          i686-pc-linux-gnu
LDFLAGS       -L/usr/lib -L/usr/X11R6/lib -lfreetype -lz
LIB_VERSION   0x646
LIB_VERSION_NUMBER 6,4,6,9
LIBS          -lMagickCore -ltiff -lfreetype -ljpeg -lfontconfig -lXext -lSM -lICE -lX11 -lXt -lbz2 -lz -lm -lpthread 
NAME          ImageMagick
PCFLAGS       
PREFIX        /usr
QuantumDepth  16
RELEASE_DATE  2009-02-26
VERSION       6.4.6
WEBSITE       http://www.imagemagick.org
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: rangecheck error in .image3x converting PDFs to JPEG

Post by fmw42 »

DELEGATES bzlib fontconfig freetype jpeg png tiff x11 xml zlib
Ghostscript delegate does not seem to be installed or it would list gs

Install the ghostscript delegate and then recompile IM. You might upgrade IM at the same time.
Post Reply