Notes »

Image Magick Crop Animation

I was trying to make an animated PNG image for an NFT and had to crop an image sequence, I was left with a border using just the -crop flag, I learned you have to add: -trim +repage to the command.

Here's the full command I used to turn an image sequence into a cropped APNG:

convert -delay 4 -crop 235x235+60+20 -trim +repage *.png -quality 1 animated.apng

edit SideBar

Page last modified on November 08, 2021, at 08:45 pm