Page 1 of 1

Multiple commands

Posted: 2017-05-09T04:40:42-07:00
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?

Re: Multiple commands

Posted: 2017-05-09T06:32:11-07:00
by snibgo
Don't the provided samples answer the question?

Re: Multiple commands

Posted: 2017-05-09T08:09:39-07:00
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 :-/

Re: Multiple commands

Posted: 2017-05-09T09:20:39-07:00
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.

Re: Multiple commands

Posted: 2017-05-10T03:23:15-07:00
by FrontierDK
The latter link was helpful, thank you :-)