1
0
mirror of https://github.com/enpaul/kodak.git synced 2025-12-18 08:47:39 +00:00

Rename project to fresnel-lens

This commit is contained in:
2021-10-28 19:03:09 -04:00
parent f9c38a5bcc
commit 888225bdf7
31 changed files with 155 additions and 160 deletions

29
fresnel_lens/constants.py Normal file
View File

@@ -0,0 +1,29 @@
import enum
import peewee
class DatabaseBackend(enum.Enum):
MARIADB = peewee.MySQLDatabase
SQLITE = peewee.SqliteDatabase
class DimensionStrategy(enum.Enum):
CROP = enum.auto()
SCALE = enum.auto()
RELATIVE = enum.auto()
class ImageFormat(enum.Enum):
JPEG = ("jpg", "jpeg")
PNG = ("png",)
GIF = ("gif",)
class Anchor(enum.Enum):
C = "center"
HTTP_HEADER_RESPONSE_VERSION = "x-fresnel_lens-version"
HTTP_HEADER_RESPONSE_DIGEST = "Digest"