For PNGs, this just does a stronger gzip under the hood. Real good png compression uses different color palettes, and would be harder to do in PIL and can be more subjective due to lossiness https://stackoverflow.com/a/52391845
Allura saves thumbnails in the db, so this will apply only to new attachments, or icons w/ sizes never requested before. Could clear those records so they get recreated, but the savings are only a few percent so I don't think its worth it in most cases.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
allura:db/8343
For PNGs, this just does a stronger gzip under the hood. Real good png compression uses different color palettes, and would be harder to do in PIL and can be more subjective due to lossiness https://stackoverflow.com/a/52391845
Allura saves thumbnails in the db, so this will apply only to new attachments, or icons w/ sizes never requested before. Could clear those records so they get recreated, but the savings are only a few percent so I don't think its worth it in most cases.