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:
29
fresnel_lens/constants.py
Normal file
29
fresnel_lens/constants.py
Normal 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"
|
||||
Reference in New Issue
Block a user