Multiple commands

ImageMagickObject is a Windows COM+ interface to ImageMagick. COM+, Visual Basic, and Delphi users should post to this discussion group.
Post Reply
FrontierDK
Posts: 10
Joined: 2017-05-08T11:12:41-07:00
Authentication code: 1151

Multiple commands

Post by FrontierDK »

Hi all :)

I'm a newbie when it comes to ImageMagick, so here's a newbie question.

If using any normal COM/ActiveX DLL in VBscript / ASP (Gflax / AspJPEG etc.), one creates an object, loads an image and that image stays in memory until the object is destroyed. Before doing so, one can copy it in memory, do all sorts of things to it etc.

It seems to me that the COM version of ImageMagic is "just" a handler (hidden shell) version of the normal .EXE. Everything must be done in ONE linie.

My question
How does one open one file and do multiple operations? Say I have a LARGE image file, of which I want to save many smaller (and different) copies + export EXIF info etc. is there a way to script the COM version?
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: Multiple commands

Post by snibgo »

Don't the provided samples answer the question?
snibgo's IM pages: im.snibgo.com
FrontierDK
Posts: 10
Joined: 2017-05-08T11:12:41-07:00
Authentication code: 1151

Re: Multiple commands

Post by FrontierDK »

I haven't been able to find it. I can only find 2 .VBS files in the example files, and it doesn't exactly shine through there :-/
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: Multiple commands

Post by snibgo »

The documentation http://www.imagemagick.org/script/ImageMagickObject.php says:
Beyond that, there is also a way to pass in and retrieve images in memory in the form of standard smart arrays (byte arrays).
Perhaps the examples at https://www.imagemagick.org/discourse-s ... hp?t=29155 will help.
snibgo's IM pages: im.snibgo.com
FrontierDK
Posts: 10
Joined: 2017-05-08T11:12:41-07:00
Authentication code: 1151

Re: Multiple commands

Post by FrontierDK »

The latter link was helpful, thank you :-)
Post Reply