How to pass a var into the "new" magick script engine ?

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
markmarques
Posts: 88
Joined: 2010-06-29T14:36:09-07:00
Authentication code: 8675308

How to pass a var into the "new" magick script engine ?

Post by markmarques »

Hi,
I know that the new imagemagick V7 has a "new" script engine but I ca not see any documentation related to it...
I have some DOS batch and even shell scripts that I would like to convert into the new script format in order to unify them.

How to pass a argument | varaiables to the new script ?
Are there any example script ?


Any input is welcome ...
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: How to pass a var into the "new" magick script engine ?

Post by snibgo »

For the changes within IM, including command line and internal IM scripting, see https://www.imagemagick.org/script/porting.php

IM has no control over scripting facilities provided by your shell, eg bash or Windows CMD or Windows BAT. They will continue to work as before, and shells will translate environment variables to strings and pass values to IM as before.

If you want examples of BAT scripts that use script parameters and environment variables, see most of my pages.
snibgo's IM pages: im.snibgo.com
Post Reply