font annotate twice
- anthony
- Posts: 8883
- Joined: 2004-05-31T19:27:03-07:00
- Authentication code: 8675308
- Location: Brisbane, Australia
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..
See IM Examples on MIFF format...
http://www.cit.gu.edu.au/~anthony/graph ... iles/#miff
for details of why this works!
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");
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/
https://imagemagick.org/Usage/
- anthony
- Posts: 8883
- Joined: 2004-05-31T19:27:03-07:00
- Authentication code: 8675308
- Location: Brisbane, Australia
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.
( 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/
https://imagemagick.org/Usage/