Page 1 of 1

(VB6) Deskew with Autocrop

Posted: 2012-02-28T19:55:16-07:00
by kegscruiser
Hi,

I'm able to successfully deskew images using the following:
IM2 = IMimage2.Convert("c:\test\in.tif", "-deskew=40", "c:\test\out.tif")

But i'm not able to get the auto-crop option to work using the '-set' command:
IM2 = IMimage2.Convert("c:\test\in.tif", "-set option:deskew:auto-crop=40", "c:\test\out.tif")

Has anyone used the '-set' command with options ? If so would you please share the correct syntax.


Many thanks...

Re: (VB6) Deskew with Autocrop

Posted: 2012-02-29T06:55:53-07:00
by Werty
You need each command/option in their own quotes, while I havent tried using the -set option I believe it should look something like this...

IM2 = IMimage2.Convert("c:\test\in.tif", "-set","option:deskew:auto-crop=40", "c:\test\out.tif")

...if indeed the "option:deskew:auto-crop=40" syntax is correct, others may chime in on that.

Re: (VB6) Deskew with Autocrop

Posted: 2012-02-29T12:24:36-07:00
by kegscruiser
Hi Werty,

Thanks for the reply, unfortunately that was one of the syntax's that I had previously tried.
You are correct about multiple commands in their own 'quotes' however I'm starting to think that the 'option' part of the statement is not formed correctly. (option:deskew:auto-crop).


Cheers...