1
0
mirror of https://github.com/enpaul/kodak.git synced 2024-11-13 10:07:04 +00:00
kodak/dehance/resources/thumbnail.py

18 lines
468 B
Python
Raw Normal View History

2021-05-02 22:12:04 +00:00
from dehance.resources._shared import DehanceResource
2021-05-02 22:12:04 +00:00
class ThumbnailScale(DehanceResource):
routes = ("/thumb/<string:image_id>/scale/<int:scale_width>.jpg",)
def get(self, image_id: str, scale_width: int):
raise NotImplementedError
2021-05-02 22:12:04 +00:00
class ThumbnailResize(DehanceResource):
routes = ("/thumb/<string:image_id>/size/<int:width>x<int:height>.jpg",)
def get(self, image_id: str, width: int, height: int):
raise NotImplementedError