Jump to content
Sign in to follow this  
komalo

Image Magick Error

Recommended Posts

komalo

hi

i am trying to make a smooth resizing on an image file image

using Image Magick Object , but the problem that -set filter:blur=

doesn't work and an error appears to me

Dim $img
Dim $ret

; Initialize error handler
$oMyError = ObjEvent("AutoIt.Error","MyErrFunc")

$img = ObjCreate("ImageMagickObject.MagickImage.1")

$ret = $img.Convert( "aaa.bmp" , _
                "-resize",  "20%" , _
                "-set",  "filter:blur=0.25", _
                "-format", "jpg", _
                "aaaResized.jpg" )
Func MyErrFunc()
  $HexNumber=hex($oMyError.number,8)
  Msgbox(0,"COM Error Test","We intercepted a COM Error !"   & @CRLF  & @CRLF & _
             "err.description is: " & @TAB & $oMyError.description   & @CRLF & _
             "err.windescription:"   & @TAB & $oMyError.windescription & @CRLF & _
             "err.number is: "   & @TAB & $HexNumber        & @CRLF & _
             "err.lastdllerror is: "   & @TAB & $oMyError.lastdllerror   & @CRLF & _
             "err.scriptline is: "   & @TAB & $oMyError.scriptline   & @CRLF & _
             "err.source is: "   & @TAB & $oMyError.source       & @CRLF & _
             "err.helpfile is: "       & @TAB & $oMyError.helpfile   & @CRLF & _
             "err.helpcontext is: " & @TAB & $oMyError.helpcontext _
            )
  SetError(1); to check for after this function returns
Endfunc

[font="Palatino Linotype"][size="3"]AutoIt Script Examples :[/size][/font][font="Palatino Linotype"][size="3"]_CaptureBehindWindowGlass CMD for Windows Vista/Seven[/size][/font][left][/left][font="Palatino Linotype"][size="3"]Non AutoIt Script programs : Border Skin - Aero Glass On XP[/size][/font]

Share this post


Link to post
Share on other sites
Andreik

Are you sure you registered ImageMagick.dll ?


When the words fail... music speaks

Share this post


Link to post
Share on other sites
komalo

i am sure , other wise it won't worked from the beginning

it resize the pic but not in smooth way , that means that the filter is not applied

Edited by komalo

[font="Palatino Linotype"][size="3"]AutoIt Script Examples :[/size][/font][font="Palatino Linotype"][size="3"]_CaptureBehindWindowGlass CMD for Windows Vista/Seven[/size][/font][left][/left][font="Palatino Linotype"][size="3"]Non AutoIt Script programs : Border Skin - Aero Glass On XP[/size][/font]

Share this post


Link to post
Share on other sites
Andreik

What error you get?

I`m not sure of this line "-format", "jpg", I don't know if the parameter is good.

Anyway If you set aaaResized.jpg it will be change automatically.


When the words fail... music speaks

Share this post


Link to post
Share on other sites
komalo

well actually it is not about the error message

i can ignored since the image is resized but

the problem that it is not resized in smooth

i am trying to blur my image but since the

blur func in ImageMagick is very slooooow

( On 1024x768 image ) , so i am trying to

size it to a smaller size and resize it to its

original size .

anyway here is the error message :

We intercepted a COM Error !

err.description is: convert: 435: unable to open image `jpg': No such file or directory:

err.windescription:

err.number is: 80020009

err.lastdllerror is: 0

err.scriptline is: 10

err.source is: ImageMagickObject.MagickImage.1

err.helpfile is:

err.helpcontext is: 0


[font="Palatino Linotype"][size="3"]AutoIt Script Examples :[/size][/font][font="Palatino Linotype"][size="3"]_CaptureBehindWindowGlass CMD for Windows Vista/Seven[/size][/font][left][/left][font="Palatino Linotype"][size="3"]Non AutoIt Script programs : Border Skin - Aero Glass On XP[/size][/font]

Share this post


Link to post
Share on other sites
komalo

i don't need it anymore , -blur worked

fast when radius used with xsigma

thank you anyway

Edited by komalo

[font="Palatino Linotype"][size="3"]AutoIt Script Examples :[/size][/font][font="Palatino Linotype"][size="3"]_CaptureBehindWindowGlass CMD for Windows Vista/Seven[/size][/font][left][/left][font="Palatino Linotype"][size="3"]Non AutoIt Script programs : Border Skin - Aero Glass On XP[/size][/font]

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.