Example #1
0
 def large_image(self):
     url = get_thumbnailer(self.image_original).get_thumbnail({
         'size': (GALLERY_IMAGE_LARGE[:GALLERY_IMAGE_LARGE.index('x')],
                  GALLERY_IMAGE_LARGE[GALLERY_IMAGE_LARGE.index('x') + 1:]),
         'box':
         self.cropping_large,
         'crop':
         True,
         'detail':
         True,
     }).url
     return url
Example #2
0
 def large_image_admin(self):
     url = get_thumbnailer(self.image_original).get_thumbnail({
         'size': (GALLERY_IMAGE_LARGE[:GALLERY_IMAGE_LARGE.index('x')],
                  GALLERY_IMAGE_LARGE[GALLERY_IMAGE_LARGE.index('x') + 1:]),
         'box':
         self.cropping_large,
         'crop':
         True,
         'detail':
         True,
     }).url
     return str.format('<img src={0} width=100 />', url)
Example #3
0
 def large_image(self):
     url = (
         get_thumbnailer(self.image_original)
         .get_thumbnail(
             {
                 "size": (
                     GALLERY_IMAGE_LARGE[: GALLERY_IMAGE_LARGE.index("x")],
                     GALLERY_IMAGE_LARGE[GALLERY_IMAGE_LARGE.index("x") + 1 :],
                 ),
                 "box": self.cropping_large,
                 "crop": True,
                 "detail": True,
             }
         )
         .url
     )
     return url
Example #4
0
 def large_image_admin(self):
     url = (
         get_thumbnailer(self.image_original)
         .get_thumbnail(
             {
                 "size": (
                     GALLERY_IMAGE_LARGE[: GALLERY_IMAGE_LARGE.index("x")],
                     GALLERY_IMAGE_LARGE[GALLERY_IMAGE_LARGE.index("x") + 1 :],
                 ),
                 "box": self.cropping_large,
                 "crop": True,
                 "detail": True,
             }
         )
         .url
     )
     return str.format("<img src={0} width=100 />", url)