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?
Multiple commands
-
- Posts: 10
- Joined: 2017-05-08T11:12:41-07:00
- Authentication code: 1151
-
- Posts: 12159
- Joined: 2010-01-23T23:01:33-07:00
- Authentication code: 1151
- Location: England, UK
Re: Multiple commands
Don't the provided samples answer the question?
snibgo's IM pages: im.snibgo.com
-
- Posts: 10
- Joined: 2017-05-08T11:12:41-07:00
- Authentication code: 1151
Re: Multiple commands
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 :-/
-
- Posts: 12159
- Joined: 2010-01-23T23:01:33-07:00
- Authentication code: 1151
- Location: England, UK
Re: Multiple commands
The documentation http://www.imagemagick.org/script/ImageMagickObject.php says:
Perhaps the examples at https://www.imagemagick.org/discourse-s ... hp?t=29155 will help.Beyond that, there is also a way to pass in and retrieve images in memory in the form of standard smart arrays (byte arrays).
snibgo's IM pages: im.snibgo.com
-
- Posts: 10
- Joined: 2017-05-08T11:12:41-07:00
- Authentication code: 1151
Re: Multiple commands
The latter link was helpful, thank you