help needed - colorspace (alternative?) and unknown error
Posted: 2009-11-12T10:47:21-07:00
Dear IM'ers,
I'm a webmaster, who has buid a website which uses IM a lot. Basically, I convert pdf-files to jpg. A lot of the time things go well and I've optimized my convertion process with this command:
convert -density 300 -colorspace RGB pdf_file_name.pdf jpg_file_name.jpg
It works pretty well on most pdf-files, however there are a few issues I can't fix. It seems to go wrong with PDF-files which need to be rasterized. When trying to convert it, I'm getting messed up colours, it doesn't look anything like the original. This is the PDF-file: http://petenict.whsites.net/folders/agrimarktt.pdf
That's the PDF which is showing incorrect colours. Without using colorspace RGB, it will show black or white boxes around the images.
Another PDF i'm trying to convert is giving the error I attached at the bottom of this message.
It's this PDF file http://petenict.whsites.net/folders/folder.pdf
Well, maybe as webmaster to webmaster, someone can help me out here.
I'm looking for a convertion command which will accept any pdf-file and convert it. Any help is much appreciated. I'll contribute by leaving feedback all the way to the end, so that others can do something with the solution as well.
All the best!
Mike
-----------
# convert matras.pdf[0] matras.jpg
**** Warning: CS/cs (setcolorspace) operand not a name: [/ICCBased {590 0 resolveR}] ****
**** Warning: CS/cs (setcolorspace) operand not a name: [/ICCBased -dict-] ****
**** Warning: CS/cs (setcolorspace) operand not a name: [/ICCBased -dict-] ****
**** Warning: CS/cs (setcolorspace) operand not a name: [/ICCBased -dict-] ****
**** Warning: CS/cs (setcolorspace) operand not a name: [/ICCBased -dict-] ****
**** Warning: CS/cs (setcolorspace) operand not a name: [/ICCBased -dict-] ****
Error: /rangecheck in --run--
Operand stack:
--nostringval-- --dict:12/21(L)-- 133553 27 888 --dict:8/16(L)-- 100 --nostringval-- --nostringval-- false PDFDEBUG false
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 1 --nostringval-- %for_pos_int_continue --nostringval-- --nostringval-- false 1 %stopped_push --nostringval-- --nostringval--
Dictionary stack:
--dict:1158/1684(ro)(G)-- --dict:2/20(G)-- --dict:97/200(L)-- --dict:97/200(L)-- --dict:107/127(ro)(G)-- --dict:275/300(ro)(G)-- --dict:24/25(L)-- --dict:4/6(L)-- --dict:24/40(L)-- --dict:23/31(L)-- --dict:1/1(ro)(G)--
Current allocation mode is local
Last OS error: 2
GPL Ghostscript 8.61: Unrecoverable error, exit code 1
convert: Postscript delegate failed `matras.pdf': No such file or directory.
convert: missing an image filename `matras.jpg'.
I'm a webmaster, who has buid a website which uses IM a lot. Basically, I convert pdf-files to jpg. A lot of the time things go well and I've optimized my convertion process with this command:
convert -density 300 -colorspace RGB pdf_file_name.pdf jpg_file_name.jpg
It works pretty well on most pdf-files, however there are a few issues I can't fix. It seems to go wrong with PDF-files which need to be rasterized. When trying to convert it, I'm getting messed up colours, it doesn't look anything like the original. This is the PDF-file: http://petenict.whsites.net/folders/agrimarktt.pdf
That's the PDF which is showing incorrect colours. Without using colorspace RGB, it will show black or white boxes around the images.
Another PDF i'm trying to convert is giving the error I attached at the bottom of this message.
It's this PDF file http://petenict.whsites.net/folders/folder.pdf
Well, maybe as webmaster to webmaster, someone can help me out here.
I'm looking for a convertion command which will accept any pdf-file and convert it. Any help is much appreciated. I'll contribute by leaving feedback all the way to the end, so that others can do something with the solution as well.
All the best!
Mike
-----------
# convert matras.pdf[0] matras.jpg
**** Warning: CS/cs (setcolorspace) operand not a name: [/ICCBased {590 0 resolveR}] ****
**** Warning: CS/cs (setcolorspace) operand not a name: [/ICCBased -dict-] ****
**** Warning: CS/cs (setcolorspace) operand not a name: [/ICCBased -dict-] ****
**** Warning: CS/cs (setcolorspace) operand not a name: [/ICCBased -dict-] ****
**** Warning: CS/cs (setcolorspace) operand not a name: [/ICCBased -dict-] ****
**** Warning: CS/cs (setcolorspace) operand not a name: [/ICCBased -dict-] ****
Error: /rangecheck in --run--
Operand stack:
--nostringval-- --dict:12/21(L)-- 133553 27 888 --dict:8/16(L)-- 100 --nostringval-- --nostringval-- false PDFDEBUG false
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 1 --nostringval-- %for_pos_int_continue --nostringval-- --nostringval-- false 1 %stopped_push --nostringval-- --nostringval--
Dictionary stack:
--dict:1158/1684(ro)(G)-- --dict:2/20(G)-- --dict:97/200(L)-- --dict:97/200(L)-- --dict:107/127(ro)(G)-- --dict:275/300(ro)(G)-- --dict:24/25(L)-- --dict:4/6(L)-- --dict:24/40(L)-- --dict:23/31(L)-- --dict:1/1(ro)(G)--
Current allocation mode is local
Last OS error: 2
GPL Ghostscript 8.61: Unrecoverable error, exit code 1
convert: Postscript delegate failed `matras.pdf': No such file or directory.
convert: missing an image filename `matras.jpg'.