Imagemagick & Pillow generate malformed GIF frames

前端 未结 3 1283
[愿得一人]
[愿得一人] 2021-01-23 01:16

I need to extract the middle frame of a gif animation.

Imagemagick:

convert C:\\temp\\orig.gif -coalesce C:\\temp\\frame.jpg

generates

3条回答
  •  独厮守ぢ
    2021-01-23 01:26

    You can do it like this:

    convert pour.gif -coalesce -delete 0-3,5-8 frame4.png
    

    Basically, it generates in full, all the frames and then deletes all frames other than from 4.

提交回复
热议问题