Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
Is there a way, perhaps with ffmpeg or convert, to constrain the size of a GIF created by stitching PNG files?
This answer (Creating a GIF animation from PNG files) does not address this, and apparently the instructions are out of date.
the -layer option of convert can optimize frames and often result in gifs with smaller sizes.
this for example optimizes by reducing the number of pixels per frame:
convert *.gif -layers optimize-frame animation.gif
also the -colors option limits the maximum number of unique colors.
Required, but never shown