[RFC] ImageOptim Plugin
Media (avatars, attachments, oEmbed/Open Graph media) is increasingly putting a strain on instances with a lot of notices. To tackle this problem, I propose a plugin that uses JpegOptim, Optipng, Pngquant 2, SVGO, and Gifsicle image optimizers and a new command that can be run periodically to optimize file size and garbage collect expired content (old avatars, ect).
Storing state in a database column to detect un-optimized media could prevent re-optimizing the same media files.
If there is interest in such a plugin, I will create one.