how to avoid blinking in a gif with infinite loop
Posted: 2015-03-12T16:03:46-07:00
Hi folks,
Just started out with ImageMagick. I'm trying to create a bobble head effect with the following command:
body.png is a headless body.
head.png is just the head for the body.
Just started out with ImageMagick. I'm trying to create a bobble head effect with the following command:
body.png is a headless body.
head.png is just the head for the body.
Code: Select all
convert -dispose none -delay 0 \
body.png \
-dispose previous -delay 0 \
-page +0+0 head.png \
-dispose previous -delay 5 \
-page +0+0 head.png \
-page +2+5 head.png \
-page +0+10 head.png \
-page +2+15 head.png \
-page +0+10 head.png \
-page +2+5 head.png \
-page +0+0 head.png \
-page +2+5 head.png \
-page +0+10 head.png \
-page +2+15 head.png \
-page +0+10 head.png \
-page +2+5 head.png \
-page +0+0 head.png \
-page +2+5 head.png \
-page +0+10 head.png \
-page +2+15 head.png \
-page +0+10 head.png \
-page +2+5 head.png \
-page +0+0 head.png \
-page +2+5 head.png \
-page +0+10 head.png \
-page +2+15 head.png \
-page +0+10 head.png \
-page +2+5 head.png \
-loop 0 output.gif
- When the gif first loads or when the gif is done with a loop iteration, it "blinks" with white space of where the head is supposed to be, so it's very jarring. Any thoughts on how to prevent this?
- Any ideas on how to add rotation to the head?
- Any thoughts on improving this code to be more efficient?