This repository has been archived on 2025-02-26. You can view files and clone it, but cannot push or open issues or pull requests.
szurubooru/server
skybldev a4ea05a0e4 server: fix swapped dimensions on some images
- [overview] this commit fixes an issue where some images would be rendered
  stretched in a browser due to a swapped width and height because of
  intentional EXIF orientation mechanics.
- [server] `func/metadata.py`: added function to resolve the image's
  dimensions after taking the EXIF orientation into consideration. normally,
  this would only be done on the client side; however, since the server takes
  those values into consideration for its own operations, it could also be
  considered a "client". for example, thumbnail generation also depends on the
  post's dimensions.
- [server] `func/posts.py`: refactored `update_post_content`. `func/images.py`
  will no longer be used to determine the dimensions of a file since
  `func/metadata.py` is now responsible for that.
- [server] refactored `func/metadata.py`
- [TODO] create migration to correct post dimensions
- [TODO] merge `func/metadata.py` with `func/images.py` and refactor
- [TODO] fix thumbnail generation
2022-01-01 17:38:23 -05:00
..
szurubooru server: fix swapped dimensions on some images 2022-01-01 17:38:23 -05:00
.dockerignore client+server: implement code autoformatting using prettier and black 2020-06-06 08:58:23 -04:00
.flake8 client+server: implement code autoformatting using prettier and black 2020-06-06 08:58:23 -04:00
alembic.ini PR fixes 2020-06-02 17:43:18 -07:00
config.yaml.dist client+server: add tag category ordering feature 2020-09-19 22:55:17 +02:00
dev-requirements.txt server/tests: use postgresql test database 2020-03-06 18:15:25 -05:00
docker-start.sh client+server: normalize trailing newlines 2020-06-05 10:54:32 -04:00
Dockerfile server/deps: add exif as dependency 2021-11-28 12:00:07 -05:00
pyproject.toml server/deps: add exif as dependency 2021-11-28 12:00:07 -05:00
requirements.txt server/deps: add exif as dependency 2021-11-28 12:00:07 -05:00
szuru-admin client+server: fix linter issues due to updated pre-commit hooks 2020-09-01 14:07:39 -04:00