mirror of
https://github.com/enpaul/kodak.git
synced 2025-06-05 22:33:28 +00:00
Compare commits
3 Commits
Author | SHA1 | Date | |
---|---|---|---|
dfa924d912 | |||
1ace9ae881 | |||
55661034a4 |
@ -2,7 +2,7 @@
|
||||
|
||||
|
||||
__title__ = "kodak"
|
||||
__version__ = "0.1.0"
|
||||
__version__ = "0.1.1"
|
||||
__authors__ = ["Ethan Paul <24588726+enpaul@users.noreply.github.com>"]
|
||||
__license__ = "MIT"
|
||||
__summary__ = "HTTP server for uploading images and generating thumbnails"
|
||||
|
@ -1,7 +1,8 @@
|
||||
import logging
|
||||
|
||||
import peewee
|
||||
from PIL import Image
|
||||
import PIL.Image
|
||||
import PIL.ImageOps
|
||||
|
||||
from kodak import configuration
|
||||
from kodak import constants
|
||||
@ -48,7 +49,8 @@ class ManipRecord(KodakModel):
|
||||
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:
|
||||
image = manipulations.scale(image, manip)
|
||||
|
||||
|
@ -1,7 +1,7 @@
|
||||
---
|
||||
openapi: "3.0.2"
|
||||
info:
|
||||
version: 0.1.0
|
||||
version: 0.1.1
|
||||
title: Kodak
|
||||
description: >-
|
||||
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]
|
||||
name = "kodak"
|
||||
version = "0.1.0"
|
||||
version = "0.1.1"
|
||||
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 = "^8.3.2"
|
||||
Pillow = "^9.0.1"
|
||||
"ruamel.yaml" = "^0.16.12"
|
||||
|
||||
[tool.poetry.extras]
|
||||
|
Loading…
x
Reference in New Issue
Block a user