1
0
mirror of https://github.com/enpaul/kodak.git synced 2024-11-11 00:57:00 +00:00
kodak/fresnel_lens/resources/thumbnail.py

18 lines
473 B
Python
Raw Normal View History

2021-10-28 23:03:09 +00:00
from fresnel_lens.resources._shared import FresnelResource
2021-10-28 23:03:09 +00:00
class ThumbnailScale(FresnelResource):
routes = ("/thumb/<string:image_id>/scale/<int:scale_width>.jpg",)
def get(self, image_id: str, scale_width: int):
raise NotImplementedError
2021-10-28 23:03:09 +00:00
class ThumbnailResize(FresnelResource):
routes = ("/thumb/<string:image_id>/size/<int:width>x<int:height>.jpg",)
def get(self, image_id: str, width: int, height: int):
raise NotImplementedError