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

Compare commits

..

No commits in common. "devel" and "0.1.0" have entirely different histories.
devel ... 0.1.0

5 changed files with 518 additions and 391 deletions

View File

@ -2,7 +2,7 @@
__title__ = "kodak" __title__ = "kodak"
__version__ = "0.1.1" __version__ = "0.1.0"
__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,8 +1,7 @@
import logging import logging
import peewee import peewee
import PIL.Image from PIL import Image
import PIL.ImageOps
from kodak import configuration from kodak import configuration
from kodak import constants from kodak import constants
@ -49,8 +48,7 @@ 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 PIL.Image.open(config.source_dir / parent.source) as image: with 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.1 version: 0.1.0
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

893
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.1" version = "0.1.0"
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 = "^9.0.1" Pillow = "^8.3.2"
"ruamel.yaml" = "^0.16.12" "ruamel.yaml" = "^0.16.12"
[tool.poetry.extras] [tool.poetry.extras]