I've created a class a long time ago that manipulates images using
imagemagick. I'm trying to get things installed on a new 64bit Win 7
machine and I'm running into ONE remaining issue.
Tip #1: Make sure not to install the x64 version. VFP won't instantiate
the object. Get the x86 version.
Tip #2: Make sure to check the "Install ImageMagickObject OLE Control
for VBScript, Visual Basic, and WSH" otherwise you won't be able to
instantiate the object in VFP
Here's my issue: I've got ImageMagick *working*, however it throws up an
error! I'm having ImageMagick thumbnail an image and the thumbnailed
image *IS* created, but it throws up an error. The error is:
"OLE IDispatch exception code 0 from ImageMagickObject.MagickImage.1:
.." The options are to "Cancel, Suspend, Ignore, Help".
As administrator, the command "regsvr32 ImageMagickObject.dll" gives a
message "DllRegisterServer in ImageMagickObject.dll succeeded." I
believe I've got it registered correctly. Hmm.
Here's the boiled down code:
oMagick = CreateObject("ImageMagickObject.MagickImage") && Success as
oMagick is an object.
oMagick.Convert("-resize", "x75", "c:\vfp\ctimagemodimagick\zu123.jpg",
"c:\vfp\ctimagemagick\thumb\zu123.jpg") && Error
I can 'eat' the error in a TRY CATCH but I'd prefer to really resolve
this. Any ideas?
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/profox
OT-free version of this list: http://mail.leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message:
http://leafe.com/archives/byMID/profox/[email protected]
** All postings, unless explicitly stated otherwise, are the opinions of the
author, and do not constitute legal or medical advice. This statement is added
to the messages for those lawyers who are too stupid to see the obvious.