jaberwacky Posted August 1, 2010 Share Posted August 1, 2010 (edited) ImageMagickObject ObjectDescription:ImageMagickObject Object allows you to quickly and easily use ImageMagick in your AutoIt scripts. If you're used to using objects in your scripts/programs then you can easily pick up on using ImageMagickObject Object. For those of you new to objects then I will provide a small usage example here. A more comprehensive example is included in the zip folder. As of now a lot of functionality could be added to the UDF, however, that could take a while so I decided to release early and often. Please inform me of any bugs that you encounter.Example:#include "AutoItObject.au3" #include "ImageMagickObject Object.au3" ; directories Global Const $testImage = @ScriptDir & "\Test Images\Image4.jpg" Global Const $DestinationDir = @ScriptDir & "\Pictures\" _AutoItObject_Startup() Global $ImageMagick = ImageMagickObject() $ImageMagick.Startup() $ImageMagick.Paint($testImage, $DestinationDir & "Paint.jpg", 1.5) ; Makes your image look like an oil painting. $ImageMagick.Resize($testImage, $DestinationDir & "Resize400.jpg", 400) $ImageMagick.Shutdown() $ImageMagick = 0 _AutoItObject_Shutdown() Current functions:AdaptiveBlurAdaptiveResizeAdaptiveSharpenAnnotateAppendAutoGammaAutoLevelAutoOrientBlackThresholdBlueShiftBlurBrightnessCharcoalClipBoardCMYKColorizeCommentContrastCropDecipherDirectoryEncipherExtensionFileNameFilesizeHeightImageInfoImplodeListTypesManualModulateMonochromeNameNegateNormalizePageGeometryPaintResizeRotateSpreadStartUpThumbnailWidth Usage Instructions:1) -- because I think AutoItObject is a great way to structure UDFs!2) Download the latest ImageMagick binary from: (ImageMagick-#.#.#-#-Q16-windows-static). Install ImageMagick and be sure to choose: "Install ImageMagickObject OLE control for VBScript ..." Confirmed working on 18.104.22.168!3) Zip Folder -- contains the proper directory structure, five test images, and other required files. After you have unzipped the zip folder to your desired directory then create two au3 files named "ImageMagickObject Object.au3" and "Example.au3" in that same directory. Copy the code from this page into "ImageMagickObject Object.au3". Next, copy the code from this page into the "example.au3". Updates:[stardate: 11-24-2010] -- Captain's Log -- works now, thank you trancexx and Werty![update: 10-05-2010][update: 09-27-2010] -- New functions and bug fixes all across the board.[update: 09-01-2010] -- Bug fixes, particularly to the "Append" method.[update: 08-21-2010] -- More functions added.[update: 08-03-2010] -- More functions. Edited May 4, 2011 by LaCastiglione Helpful Posts and Websites: AutoIt3 Variables and Function Parameters MHz | AutoIt Wiki | Using the GUIToolTip UDF BrewManNH | Can't find what you're looking for on the Forum? Link to comment Share on other sites More sharing options...
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
Already have an account? Sign in here.Sign In Now