eevee / floof

Some kind of art site.
http://bugs.veekun.com/projects/floof
ISC License
10 stars 4 forks source link

Format-specific file optimization #82

Open eevee opened 11 years ago

eevee commented 11 years ago

These add a good bit of server-side time, though. Staging area (#13) may help. We could do this async in the background, but because we key by file hash, the art wouldn't be available until we were done. Ugh.

habnabit commented 11 years ago

I just did JPEG rotation and optimization for shurtapp recently; see https://github.com/habnabit/shurtapp/blob/master/photo-pipeline/process-image.sh

This seems like exactly what you want, modulo the -resize option to imagemagick. I found some random dude's jpeg compression parameters which, on average, compress jpegs smaller than any other encoder I've seen.