svsticky / pxl

Manage photo albums on S3 buckets
https://pxl-demo.svsticky.nl
Mozilla Public License 2.0
17 stars 2 forks source link

Strip EXIF metadata from uploaded images #13

Closed duijf closed 5 years ago

duijf commented 5 years ago

Stuff like exact date/time, location and a bunch of other things. We don't need it for anything, so we shouldn't store it.

tomwassenberg commented 5 years ago

Maybe leave the date/time, because we might want to use it for sorting within albums?

duijf commented 5 years ago

The PIL library that we use apparently does this already according to this SO answer @HugoPeters1024 found, so if we want to save some data, we would have to program this explicitly.

maartenberg commented 5 years ago

We'll also want to preserve the Rotation tag, since an image can get messed up otherwise (build and see http://localhost:8000/2018-05-13-fissabon/ for an example, this image shows correctly in the source file).

duijf commented 5 years ago

Instead of preserving Orientation, we'll just read it from the image and rotate/flip the image accordingly.