itsthatguy / avatars-api-middleware

The express middleware for our avatars service
http://avatars.adorable.io
Other
748 stars 96 forks source link

Reduce image size by limiting bit depth, etc. #65

Open rylnd opened 6 years ago

rylnd commented 6 years ago

This optimization comes from @TylerK: we should be able to reduce our image sizes (and thus bandwidth, etc.) by modifying our imagemagick params (and/or using pngcrush) to limit the images' bit depth and remove the alpha channel.

In general, there's likely a bunch of features of PNG that we're paying for but don't really need.

bigtiger commented 6 years ago

nods approvingly