On Sat, 28 Mar 2009 14:57:30 -0500 [email protected] wrote:
| Hello! I am trying to use imagemagick to automatically rotate and crop | a scanned image (the scanned page is a little bit crooked). The | documentation for the '-deskew' option states: | | ----------------- | | | -deskew /threshold/ | | straighten an image. A threshold of 40% works for most images. | | Use -set | <http://www.imagemagick.org/script/command-line-options.php#set> | 'option:deskew:auto-crop /width/' to auto crop the image. The set | argument is the pixel width of the image background (e.g 40). | | ----------------- | | It is the note at the bottom that intregues me. I can't seem to get it | to work though. Here are two commands (out of like 40) that I've tried | so far: | | $ convert -deskew '40%' -set 'option:deskew:auto-crop 10' scan9.pnm | scan92.pnm | convert: missing an image filename `scan92.pnm' @ | wand/convert.c/ConvertImageCommand/2710. | | and: | $convert -set 'option:deskew:auto-crop 10' scan9.pnm scan92.pnm | convert: missing an image filename `scan92.pnm' @ | wand/convert.c/ConvertImageCommand/2710. | | Do any of you know how to do this? If not, do you know how to | successfully find how to do it? :) | | Thank you! | | ~Andy | Read the image in FIRST before adding settings and applying operations. Read is itself an operation that should be applied before you operate on the image, other wise things may not happen in the orader or way you expect. For details see Im Examples, Basics, the stuff at the top and more specifically the 'legacy' option handling. Anthony Thyssen ( System Programmer ) <[email protected]> ----------------------------------------------------------------------------- Like all bee keepers, Death wore a veil. It wasn't that he had anything to sting, but sometimes a bee would get inside his skull and buzz around, giving him a headache. -- Terry Pratchet, "Eric" ----------------------------------------------------------------------------- Anthony's Home is his Castle http://www.cit.gu.edu.au/~anthony/ _______________________________________________ Magick-users mailing list [email protected] http://studio.imagemagick.org/mailman/listinfo/magick-users
