font annotate twice

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 »

We're using ImageMagick 6.3.0-1 Beta and the annotations where three different colors as expected. Which version of ImageMagick are you using?
User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Post by anthony »

You will need to create unique temporary files to avoid that type of issue. Its also a scripting problem not an IM problem. Typically you add the process ID to the filename EG $$
that that isn't always guranteed either.

Just remember to ensure the script cleans up the files, even when 'killed'.

Alturnativally pipe the frames to the animation command..

Code: Select all

exec("sh -c \"( $convert .... miff:-; $convert .... miff:-;  $convert .... miff:-; ) | $convert -delay 30 -dispose Background page +0+0  miff:-  -loop 0 test.gif"); 
See IM Examples on MIFF format...
http://www.cit.gu.edu.au/~anthony/graph ... iles/#miff
for details of why this works!
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 »

The sh -c was to allow you to group the comamnds in shell parenthesis, then pipe all those commands output into the final command.

( cmd; cmd; cmd; ) | cmd

It may not be needed as the exec may pass the string to a shell for you. I don't know.
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
Post Reply