Page 1 of 1
Posted: 2006-10-23T09:46:45-07:00
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?
Posted: 2006-10-23T19:58:50-07:00
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!
Posted: 2006-10-23T21:33:22-07:00
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.