Page 1 of 1

-depth 1

Posted: 2008-09-10T10:09:02-07:00
by pnem
hello!
I have a problem with this option: "-depth 1"
I don't understand why don't work it!
I use ubuntu hardy.
Thanks!
:)Pali

Re: -depth 1

Posted: 2008-09-10T10:22:53-07:00
by magick
You did not provide enough information to help you.

Re: -depth 1

Posted: 2008-09-10T10:36:58-07:00
by pnem
I say thank you for the fast answer!
I used the command in this manner:
convert -density 600 -depth 1 file.eps file.tif
This worked under Windows early.
But now under ubuntu unfortunately not. (ImageMagick 6.3.7)
The result was a chessboard :)
I Tried the -monochrome with a command, but the lines were hairy with it
I do not know it what let me make an attempt yet.
Greet the help!
:)Pali

Re: -depth 1

Posted: 2008-09-10T14:24:39-07:00
by magick
We can reproduce the problem you posted and have applied a patch to the ImageMagick subversion trunk. Until fix the problem on your computer, edit /usr/local/lib/ImageMagick-6.?.?/config/delegate.xml and change pnmraw to pbmraw in the tag associated with ps:mono.

Re: -depth 1

Posted: 2008-09-11T01:16:03-07:00
by pnem
I say thank you for the answer!
I did the correction after a safety rescue, but did not help unfortunately.
But I haven't got /usr/local/lib/ImageMagick-6.?.?/...
just usr/lib/ImageMagick-6.?.?/...
Thanks!
:) Pali

Re: -depth 1

Posted: 2008-09-11T21:40:20-07:00
by anthony
on ubuntu do a locate "delegates.xml" to locate the system delegates file.
or run

Code: Select all

convert -list delegate
which will list the files it is reading for the delegates

Re: -depth 1

Posted: 2008-09-12T01:55:17-07:00
by pnem
:S

Sorry but I don't understand it.
Can you write it step by step?

Here is the "convert -list delegate"
What does it mean?:

Path: /usr/lib/ImageMagick-6.3.7/config/delegates.xml

Delegate Command
-------------------------------------------------------------------------------
cgm => "ralcgm" -d ps -oC < "%i" > "%o" 2> "%u"
dng:decode => "ufraw-batch" --silent --wb=camera --black-point=auto --exposure=auto --create-id=also --out-type=ppm16 "--output=%u.pnm" "%i"
eps<=>pdf "gs" -q -dQUIET -dPARANOIDSAFER -dBATCH -dNOPAUSE -dNOPROMPT -dMaxBitmap=500000000 "-sDEVICE=pdfwrite" "-sOutputFile=%o" "-f%i"
eps<=>ps "gs" -q -dQUIET -dPARANOIDSAFER -dBATCH -dNOPAUSE -dNOPROMPT -dMaxBitmap=500000000 -dAlignToPixels=0 -dGridFitTT=0 "-sDEVICE=pswrite" "-sOutputFile=%o" "-f%i"
fig => "fig2dev" -L ps "%i" "%o"
gplt => "echo" "set size 1.25,0.62 set terminal postscript portrait color solid; set output "%o"; load "%i"" > "%u";"gnuplot" "%u"
hdr => "ra_pfm" "%i" "%o"
hpg => "hp2xx" -q -m eps -f `basename "%o"` "%i" mv -f `basename "%o"` "%o"
hpgl => "if [ -e hp2xx -o -e /usr/bin/hp2xx ]; then hp2xx -q -m eps -f `basename "%o"` "%i" mv -f `basename "%o"` "%o else echo "You need to install hp2xx to use HPGL files with ImageMagick." exit 1 fi"
htm => "html2ps" -U -o "%o" "%i"
html => "html2ps" -U -o "%o" "%i"
https => "curl" -s -k -o "%o" "https:%M"
ilbm => "ilbmtoppm" "%i" > "%o"
man => "groff" -man -Tps "%i" > "%o"
pdf<=>eps "gs" -q -dQUIET -dPARANOIDSAFER -dBATCH -dNOPAUSE -dNOPROMPT -dMaxBitmap=500000000 -dAlignToPixels=0 -dGridFitTT=0 "-sDEVICE=epswrite" "-sOutputFile=%o" "-f%i"
pdf<=>ps "gs" -q -dQUIET -dPARANOIDSAFER -dBATCH -dNOPAUSE -dNOPROMPT -dMaxBitmap=500000000 -dAlignToPixels=0 -dGridFitTT=0 "-sDEVICE=pswrite" "-sOutputFile=%o" "-f%i"
pic => "ra_pfm" "%i" "%o"
pnm<= ilbm "ppmtoilbm" -24if "%i" > "%o"
pnm<= launch "gimp" "%i"
pov => "povray" "+i%i" -D0 +o"%o" +fn%q +w%w +h%h +a -q9 -kfi"%s" -kff"%n" "convert" -concatenate "%o*.png" "%o"
ps<=>eps "gs" -q -dQUIET -dPARANOIDSAFER -dBATCH -dNOPAUSE -dNOPROMPT -dMaxBitmap=500000000 -dAlignToPixels=0 -dGridFitTT=0 "-sDEVICE=epswrite" "-sOutputFile=%o" "-f%i"
ps<=>pdf "gs" -q -dQUIET -dPARANOIDSAFER -dBATCH -dNOPAUSE -dNOPROMPT -dMaxBitmap=500000000 -dAlignToPixels=0 -dGridFitTT=0 "-sDEVICE=pdfwrite" "-sOutputFile=%o" "-f%i"
ps<= print "lpr "%i"
rad => "ra_pfm" "%i" "%o"
rgba<= rle "rawtorle" -o "%o" -v "%i"
scan => "scanimage" -d "%i" > "%o"
shtml => "html2ps" -U -o "%o" "%i"
svg => "wmf2eps" -o "%o" "%i"
txt<=>ps "enscript" -o "%o" "%i"
wmf => "wmf2eps" -o "%o" "%i"
pnem@R61:/media/DATA/testeps$

Thanks!
:) Pali

Re: -depth 1

Posted: 2008-09-12T02:09:28-07:00
by anthony
It meant it read those delegates from
Path: /usr/lib/ImageMagick-6.3.7/config/delegates.xml
so that is where you need to make your changes!

Re: -depth 1

Posted: 2008-09-12T14:10:09-07:00
by pnem
I did the correction , but did not help.