Example #1
0
 def small_image(self):
     url = get_thumbnailer(self.image_original).get_thumbnail({
         'size': (PRODUCT_IMAGE_SMALL[:PRODUCT_IMAGE_SMALL.index('x')],
                  PRODUCT_IMAGE_SMALL[PRODUCT_IMAGE_SMALL.index('x') + 1:]),
         'box': self.cropping_small,
         'crop': True,
         'detail': True,
     }).url
     return url
Example #2
0
 def small_image_admin(self):
     url = get_thumbnailer(self.image_original).get_thumbnail({
         'size': (PRODUCT_IMAGE_SMALL[:PRODUCT_IMAGE_SMALL.index('x')],
                  PRODUCT_IMAGE_SMALL[PRODUCT_IMAGE_SMALL.index('x') + 1:]),
         'box': self.cropping_small,
         'crop': True,
         'detail': True,
     }).url
     return str.format('<img src={0} width=200 />', url)
Example #3
0
 def small_image_admin(self):
     url = get_thumbnailer(self.image_original).get_thumbnail({
         'size': (PRODUCT_IMAGE_SMALL[:PRODUCT_IMAGE_SMALL.index('x')],
                  PRODUCT_IMAGE_SMALL[PRODUCT_IMAGE_SMALL.index('x') + 1:]),
         'box':
         self.cropping_small,
         'crop':
         True,
         'detail':
         True,
     }).url
     return str.format('<img src={0} width=200 />', url)
Example #4
0
 def small_image(self):
     url = get_thumbnailer(self.image_original).get_thumbnail({
         'size': (PRODUCT_IMAGE_SMALL[:PRODUCT_IMAGE_SMALL.index('x')],
                  PRODUCT_IMAGE_SMALL[PRODUCT_IMAGE_SMALL.index('x') + 1:]),
         'box':
         self.cropping_small,
         'crop':
         True,
         'detail':
         True,
     }).url
     return url