That was the problem.  The Ubuntu Ibex doesn't have a recent enough
version of ImageMagick.  I had to peruse the Jaunty Jackalope (to be
released April 27th) packages and go through a little 'dependency heck'.
:)  I now have a version with the -deskew option.  :)

The deskew function seems to work remarkably well at determining the
right rotation amount.  Does anyone know the algorithm behind it?

It seems to do less well actually rotating in that the image quality is
not so good.  Here is an example:

http://tinyurl.com/c3oloq

If you compare scan3.pnm and scan3.deskewed.pnm, you'll see that the
deskewed version has bands of blurry text.  I would guess that this is
because the rotation function is applying just linear interpolation (the
least quality of the interpolation options).  In my opinion, this
severely limits the application of the -deskew option.  Is there a way
we could add the ability to choose higher order (better quality)
interpolation methods, for example cubic or Lanczos interpolation?

Your comments (yea you. :)  ) are greatly appreciated!

Sincerely,
Andy Doucette


+imagemagick+andromodon+837af9350a.duc.sequere.aut.de.via.decede#imagemagick....@spamgourmet.com
wrote:
>> Thank you!  I'm having trouble finding a '-deskew' option.
>>     
>
> You may need a modern version of ImageMagick.  The current version
> is ImageMagick 6.5.0-9.  Use the -deskew option with the convert
> program:
>
>   convert image.png -deskew ...
>
>   

_______________________________________________
Magick-developers mailing list
Magick-developers@imagemagick.org
http://studio.imagemagick.org/mailman/listinfo/magick-developers

Reply via email to