1
0
mirror of https://github.com/enpaul/kodak.git synced 2025-06-07 15:23: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"
__version__ = "0.1.1"
__version__ = "0.1.0"
__authors__ = ["Ethan Paul <24588726+enpaul@users.noreply.github.com>"]
__license__ = "MIT"
__summary__ = "HTTP server for uploading images and generating thumbnails"

View File

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

View File

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