* Close the orig file in `create_thumbnail` method
* Skip python-magic tests on windows
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
---------
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Johannes Wilm <mail@johanneswilm.org>
* add support for Django STORAGES
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
---------
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Johannes Wilm <mail@johanneswilm.org>
* Support for rectangular avatars
* fix tests
* Add rectangle size test
* Update documentation and changelog
* add test for exposing username (or not)
* add primary_avatar_tag tests
* make rebuild_avatars, remove_avatar_images work with rectangles + tests
* Python 2 => 3
* fix tests
Co-authored-by: Karl Moritz Hermann <karlmoritz.hermann@gmail.com>
* added custom delete method to Avatar model inorder to delete avatars from file storage
* simplified chained expression to pass linting
* linting
* stopped using reserved keyword dir
* changed remove_avatar_images so it deletes all generated avatars
* went back to using queryset delete
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
Co-authored-by: Johannes Wilm <mail@johanneswilm.org>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Transpose the original image before resizing based on EXIF orientation
information to display image in the correct orientation. If someone
uploads an image from an iPhone (for example) the image is currently
often rendered in the wrong orientation.