How to crop gif images into circle
Posted: 2018-03-05T00:29:30-07:00
I have a gif image like this:

I want to crop it into a circle.
Here is the command which I use to crop images, it works fine with static images (png, jpeg, ...), but it doesn't work with animations (gif images).
How can I do that? Thanks.
Here is information about ImageMagick:

I want to crop it into a circle.
Here is the command which I use to crop images, it works fine with static images (png, jpeg, ...), but it doesn't work with animations (gif images).
Code: Select all
convert bird.png -alpha on \( +clone -channel a -evaluate multiply 0 +channel -fill white -draw 'circle 128,128 0,128' \) -compose DstIn -composite bird-circle.png
Here is information about ImageMagick:
Version: ImageMagick 6.7.8-9 2017-09-20 Q16 http://www.imagemagick.org
Copyright: Copyright (C) 1999-2012 ImageMagick Studio LLC
Features: OpenMP