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