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_suprem...@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.andromo...@spamgourmet.com 
> <imagemagick.20.andromo...@spamgourmet.com> wrote:
>
>   
>> From: imagemagick.20.andromo...@spamgourmet.com 
>> <imagemagick.20.andromo...@spamgourmet.com>
>> Subject: [magick-users] -deskew with autocrop
>> To: magick-us...@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-us...@imagemagick.org
>> http://studio.imagemagick.org/mailman/listinfo/magick-users
>>
>>     
>
>
>       
>
>   
_______________________________________________
Magick-developers mailing list
Magick-developers@imagemagick.org
http://studio.imagemagick.org/mailman/listinfo/magick-developers

Reply via email to