mirror of
https://github.com/enpaul/kodak.git
synced 2025-06-07 15:23:25 +00:00
Compare commits
3 Commits
Author | SHA1 | Date | |
---|---|---|---|
dfa924d912 | |||
1ace9ae881 | |||
55661034a4 |
@ -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"
|
||||||
|
@ -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)
|
||||||
|
|
||||||
|
@ -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
895
poetry.lock
generated
File diff suppressed because it is too large
Load Diff
@ -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]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user