Simple Animation

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
higoka
Posts: 17
Joined: 2019-04-22T16:36:51-07:00
Authentication code: 1152

Simple Animation

Post by higoka »

In my animation there is a "empty" frame after the animation restarts.
Is it possible to remove this?

Animation
Image

Code

Code: Select all

magick -size 256x256 canvas:transparent -dispose background \
  img/rare_dragonlamp_64_f_4_0.png -page +100+126 \
  img/rare_dragonlamp_64_f_4_1.png -page +125+32 \
  img/rare_dragonlamp_64_f_4_2.png -page +123+37 \
  img/rare_dragonlamp_64_f_4_3.png -page +121+34 \
  img/rare_dragonlamp_64_f_4_4.png -page +120+33 \
  animation.gif
Images: http://s000.tinyupload.com/?file_id=423 ... 6253843273
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Simple Animation

Post by fmw42 »

Put the size 256x256 in the -page arguments

Code: Select all

magick -dispose previous \
img/rare_dragonlamp_64_f_4_1.png -page 256x256+125+32 \
img/rare_dragonlamp_64_f_4_2.png -page 256x256+123+37 \
img/rare_dragonlamp_64_f_4_3.png -page 256x256+121+34 \
img/rare_dragonlamp_64_f_4_4.png -page 256x256+120+33 \
animation.gif
higoka
Posts: 17
Joined: 2019-04-22T16:36:51-07:00
Authentication code: 1152

Re: Simple Animation

Post by higoka »

There is still this blank frame? https://picr.ws/i/64Y
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Simple Animation

Post by fmw42 »

Not for me on IM 7.0.8.46 Q16 Mac OSX.

Code: Select all

identify animation.gif
animation2.gif[0] GIF 19x41 256x256+120+33 8-bit sRGB 8c 0.000u 0:00.000
animation2.gif[1] GIF 20x35 256x256+120+33 8-bit sRGB 8c 0.000u 0:00.002
animation2.gif[2] GIF 22x37 256x256+120+33 8-bit sRGB 8c 0.000u 0:00.002
animation2.gif[3] GIF 22x39 256x256+120+33 8-bit sRGB 8c 690B 0.010u 0:00.001
Did you copy my code exactly? What is your IM version and platform?
higoka
Posts: 17
Joined: 2019-04-22T16:36:51-07:00
Authentication code: 1152

Re: Simple Animation

Post by higoka »

Removed the f_4_0.png now it works.
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Simple Animation

Post by fmw42 »

If you look carefully at my command, you will see that I had removed it. Glad you figured it out.
Post Reply