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?".
sonusdream
Post
by sonusdream » 2007-01-23T15:53:42-07:00
I tried executing this command from within my site:
Code: Select all
identify -format %n "/usr/local/apache/cgi-bin/pdf1_4.pdf"
but i am recieving this error:
Code: Select all
Error: /rangecheck in --.image3x-- Operand stack: --dict:10/10(L)-- --nostringval-- --dict:5/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-- 1292 --nostringval-- 3 10 %oparray_pop --nostringval-- --nostringval-- Dictionary stack: --dict:1067/1123(ro)(G)-- --dict:0/20(G)-- --dict:73/200(L)-- --dict:73/200(L)-- --dict:97/127(ro)(G)-- --dict:229/230(ro)(G)-- --dict:19/24(L)-- --dict:4/6(L)-- --dict:20/20(L)-- --dict:1/1(ro)(G)-- Current allocation mode is local
now when i try to execute exactly the same command from the shell window, i did not recieve any error.
some informations:
IM: 6.2.6
Ghostscript: 8.50
File Identified: PDF 1.4 generated by photoshop
hope you can help me again.
thanks in advance,
sonus
anthony
Posts: 8883 Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia
Post
by anthony » 2007-01-23T18:26:09-07:00
Looks like the ghostscript is missing soem required environment settings. Commandline has a full environment setip, but the web usally has a minimal (if any) environment.
sonusdream
Post
by sonusdream » 2007-01-24T15:20:15-07:00
thanks for the reply..
anyway, what is the exact configuration i need in order for this to work?
regards,
sonus
magick
Site Admin
Posts: 11064 Joined: 2003-05-31T11:32:55-07:00
Post
by magick » 2007-01-24T16:30:52-07:00
Looks like your PDF is corrupted or Ghostscript cannot read it. Try using Ghostscript directly to view the file and see if it complains:
sonusdream
Post
by sonusdream » 2007-01-25T14:36:25-07:00
i tried using the command above and i received this error:
Code: Select all
gs pdf1_4.pdf
AFPL Ghostscript 8.50 (2004-12-10)
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
AFPL Ghostscript 8.50: **** 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:1116/1686(ro)(G)-- --dict:0/20(G)-- --dict:75/200(L)-- --dict:75/200(L)-- --dict:105/127(ro)(G)-- --dict:247/347(ro)(G)-- --dict:21/24(L)-- --dict:4/6(L)-- --dict:21/32(L)--
Current allocation mode is local
Last OS error: 2
AFPL Ghostscript 8.50: Unrecoverable error, exit code 1
I dont know if the file is corrupted because i can open the pdf file without any problem and the pdf file was created using photoshop.
regards,
sonus