View Full Version : ImageMagick & AMS?
jassing
03-10-2010, 11:57 PM
I had a need to use ImageMagick to identify an image; but when i tried, it errored:
omagick = luacom.CreateObject("ImageMagickObject.MagickImage.1")
cImgeType = omagick:Identify("-format","%m","c:\\temp\\photo.bmp")
Yeilded:
Internal Error:(.\library\tLuaCOMTypeHandler.cpp,725):
Anyone have ideas before I just shell to identify.exe?
Sakuya
03-11-2010, 03:48 AM
I would recommend using identify.exe after packing it with UPX to reduce file size then use File.Run with SW_HIDE to hide the operation as it does it, I'm afraid I won't be able to suggest a method to get LuaCOM working though.
I use ImageMagick's convert.exe with some of my more recent projects to add gaussian blur, convert images and other things. The File.Run method has never failed me.
jassing
03-11-2010, 10:57 AM
not ideal , since I'm not sure it's legal to redistribute the exe's, but the com object & dll's are.
I used (retest's?) commandline plugin over File.Run() and SW_HIDE with redirects.. works fine.
Sakuya
03-12-2010, 01:35 AM
not ideal , since I'm not sure it's legal to redistribute the exe's, but the com object & dll's are.
I found this on their website.
ImageMagick-6.6.0-Q16-windows.zip
Portable Win32 static at 16 bits-per-pixel. This distribution does not include an installer and is most useful if you want to include ImageMagick in your own application distribution
I didn't read into it any more than on the download page.
Powered by vBulletin™ Version 4.0.6 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.