[magick-users] -deskew with autocrop of 20)

imagemagick.20.andromodon at spamgourmet.com imagemagick.20.andromodon at spamgourmet.com
Sat Mar 28 15:48:55 PDT 2009


Thank you so much!  Taking the quotes away eliminates the error. :)

The documentation for -deskew should probably be updated to read "Use
'-set option:deskew:auto-crop /width/' to auto crop the image" (note the
placement of the first single quote) instead of "Use -set
'option:deskew:auto-crop /width/' to auto crop the image."  As the
documentation is currently, I believe it says to quote it in the
undesirable way.

~Andy


Pete Whatever - el_supremo01 at yahoo.co.uk wrote:
> Hi Andy,
> I think the problem is that you should not have 'option:deskew:auto-crop 10'  in quotes because it passes this string as one argument to IM. IM then swallows up the following image filename (scan9.pnm) as if it was the argument to option: and then it croaks because it is now expecting scan92.pnm to be an existing image which it will read.
>
> Best Wishes
> Pete
>
>
> --- On Sat, 3/28/09, imagemagick.20.andromodon at spamgourmet.com <imagemagick.20.andromodon at spamgourmet.com> wrote:
>
>   
>> From: imagemagick.20.andromodon at spamgourmet.com <imagemagick.20.andromodon at spamgourmet.com>
>> Subject: [magick-users] -deskew with autocrop
>> To: magick-users at imagemagick.org
>> Date: Saturday, March 28, 2009, 2:57 PM
>> 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
>>
>>
>>
>> _______________________________________________
>> Magick-users mailing list
>> Magick-users at imagemagick.org
>> http://studio.imagemagick.org/mailman/listinfo/magick-users
>>
>>     
>
>
>       
>
>   


More information about the Magick-users mailing list