Q: How to use the samples from anthony in the MS world

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
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Post by magick »

All of Anthony's command line examples should work under Windows except no backslash is required before the open parenthesis (i.e. use ( instead of \() and you might need to use single quotes where Anthony's example uses double quotes. Note that this is just requirements of the command line shell. Some shells require that certain characters be escaped.
User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Post by anthony »

This information is given on the very top level page of the IM Examples.

EG:
PC Windows users: All examples are written for use on UNIX, and specifically Linux systems, however with care they should be usable on Windows and in DOS scripts. Caution is recommended however.

Window users should specifically note that

* Backslashes '\' appearing on the end of an example line represents a 'line continuation' which appends the next line to the same command line sequence. Just append all the lines onto one line and remove those backshashes.
* Backslashes '\' are not needed to escape parenthesis '()' or exclamation marks '!'.
* Single quotes ''' may need to be used (carefully) in place of double quotes '"' for the command to work correctly.
* Also in dos batch files any percent '%' characters may need to be doubled '%%' to work correctly.
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Post by anthony »

if you don't have a +clone you are NOT using version 6 of IM
in which case parenthesis will also not work, and you will be stuck runing
lots of separate convert commands creating temproary files and piple lines
to pass images between them.

See the basics page for details of the major changes and additions to IM.
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
Post Reply