1
0
mirror of https://github.com/enpaul/kodak.git synced 2025-06-06 23:03:25 +00:00

Compare commits

...

3 Commits
0.1.0 ... devel

Author SHA1 Message Date
dfa924d912
Update to pillow 9.x
Update transient dependencies
2022-03-09 20:05:27 -05:00
1ace9ae881
Bump bugfix version 2022-03-09 19:55:54 -05:00
55661034a4
Fix jpeg image autorotation issue
See also https://github.com/python-pillow/Pillow/issues/4703
See also https://github.com/huggingface/transformers/pull/14062
2021-12-30 21:29:42 -05:00
5 changed files with 391 additions and 518 deletions

View File

@ -2,7 +2,7 @@
__title__ = "kodak" __title__ = "kodak"
__version__ = "0.1.0" __version__ = "0.1.1"
__authors__ = ["Ethan Paul <24588726+enpaul@users.noreply.github.com>"] __authors__ = ["Ethan Paul <24588726+enpaul@users.noreply.github.com>"]
__license__ = "MIT" __license__ = "MIT"
__summary__ = "HTTP server for uploading images and generating thumbnails" __summary__ = "HTTP server for uploading images and generating thumbnails"

View File

@ -1,7 +1,8 @@
import logging import logging
import peewee import peewee
from PIL import Image import PIL.Image
import PIL.ImageOps
from kodak import configuration from kodak import configuration
from kodak import constants from kodak import constants
@ -48,7 +49,8 @@ class ManipRecord(KodakModel):
config.content_dir / parent.name / f"{manip.name}.{format_.name.lower()}" config.content_dir / parent.name / f"{manip.name}.{format_.name.lower()}"
) )
with Image.open(config.source_dir / parent.source) as image: with PIL.Image.open(config.source_dir / parent.source) as image:
image = PIL.ImageOps.exif_transpose(image)
if manip.scale.horizontal is not None or manip.scale.vertical is not None: if manip.scale.horizontal is not None or manip.scale.vertical is not None:
image = manipulations.scale(image, manip) image = manipulations.scale(image, manip)

View File

@ -1,7 +1,7 @@
--- ---
openapi: "3.0.2" openapi: "3.0.2"
info: info:
version: 0.1.0 version: 0.1.1
title: Kodak title: Kodak
description: >- description: >-
A simple HTTP service for mucking about with images. This is a super basic HTTP A simple HTTP service for mucking about with images. This is a super basic HTTP

895
poetry.lock generated

File diff suppressed because it is too large Load Diff

View File

@ -1,6 +1,6 @@
[tool.poetry] [tool.poetry]
name = "kodak" name = "kodak"
version = "0.1.0" version = "0.1.1"
license = "MIT" license = "MIT"
authors = ["Ethan Paul <24588726+enpaul@users.noreply.github.com>"] authors = ["Ethan Paul <24588726+enpaul@users.noreply.github.com>"]
description = "HTTP server for uploading images and generating thumbnails" description = "HTTP server for uploading images and generating thumbnails"
@ -45,7 +45,7 @@ flask = "^1.1.2"
flask-restful = "^0.3.8" flask-restful = "^0.3.8"
gunicorn = {version = "^20.1.0", optional = true} gunicorn = {version = "^20.1.0", optional = true}
peewee = "^3.13.3" peewee = "^3.13.3"
Pillow = "^8.3.2" Pillow = "^9.0.1"
"ruamel.yaml" = "^0.16.12" "ruamel.yaml" = "^0.16.12"
[tool.poetry.extras] [tool.poetry.extras]