-depth 1

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.
Post Reply
pnem

-depth 1

Post 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
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: -depth 1

Post by magick »

You did not provide enough information to help you.
pnem

Re: -depth 1

Post 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
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: -depth 1

Post 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.
pnem

Re: -depth 1

Post 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
User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Re: -depth 1

Post 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
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
pnem

Re: -depth 1

Post 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
User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Re: -depth 1

Post 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!
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
pnem

Re: -depth 1

Post by pnem »

I did the correction , but did not help.
Post Reply