def get_box_bg_cropped(self): """ Returns the box bg with proper size """ return make_absolute_url( get_thumbnailer(self.box_bg).get_thumbnail({ 'size': (585, 618), 'crop': True}).url)
def get_featured_picture_cropped(self): """ Returns the box bg with proper size """ return make_absolute_url( get_thumbnailer(self.featured_picture).get_thumbnail({ 'size': (1280, 512), 'crop': True}).url)
def get_main_picture_cropped(self): """ Returns the main picture with proper size """ return make_absolute_url( get_thumbnailer(self.main_picture).get_thumbnail({ 'size': (500, 500), 'crop': True}).url)