komalo Posted November 8, 2008 Share Posted November 8, 2008 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] Link to comment Share on other sites More sharing options...
Andreik Posted November 8, 2008 Share Posted November 8, 2008 Are you sure you registered ImageMagick.dll ? When the words fail... music speaks. Link to comment Share on other sites More sharing options...
komalo Posted November 8, 2008 Author Share Posted November 8, 2008 (edited) 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 November 8, 2008 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] Link to comment Share on other sites More sharing options...
Andreik Posted November 8, 2008 Share Posted November 8, 2008 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. Link to comment Share on other sites More sharing options...
komalo Posted November 8, 2008 Author Share Posted November 8, 2008 well actually it is not about the error messagei can ignored since the image is resized butthe 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: 80020009err.lastdllerror is: 0err.scriptline is: 10err.source is: ImageMagickObject.MagickImage.1err.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] Link to comment Share on other sites More sharing options...
komalo Posted November 8, 2008 Author Share Posted November 8, 2008 (edited) i don't need it anymore , -blur worked fast when radius used with xsigma thank you anyway Edited November 8, 2008 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] Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now