aboutsummaryrefslogtreecommitdiffstats
path: root/script/test
diff options
context:
space:
mode:
authorDave Arter <davea@mysociety.org>2017-06-28 18:00:01 +0100
committerDave Arter <davea@mysociety.org>2017-06-30 18:39:11 +0100
commit30dd9d8bd1f4229bf5cb0a8c559ba00dba35b750 (patch)
tree319f3cf4ad6a84bd0cab753827245ee2429590fe /script/test
parent758899a8058ed2ecf66d1e16b929485c36f23144 (diff)
Resize photos client-side before uploading
The newest version of Dropzone has added support for client-side resizing of images, so this commit upgrades to version 5.1.1 and takes advantage of that in order to reduce the disc space consumed by uploaded images. The target size & JPEG quality is quite aggressive, resulting in files in the region of 200-300KB instead of several MB. I've tried to pick a value which doesn't impact the usefulness of the photos in identifying problems. Handily the new version also correctly rotates images according to the EXIF tag so our patch has be reduced dramatically to deal with the sync nature of the mini EXIF library in use. Related to the disc space part of #1411, though EXIF metadata isn't stripped.
Diffstat (limited to 'script/test')
0 files changed, 0 insertions, 0 deletions