def phone_thumb(self): """ Thumbnail for image on phone screens. """ image = Resize(self.image) return Resize.gallery_phone(image)
def phone_thumb(self): ''' Thumbnail for image on phone screens. ''' image = Resize(self.image) return Resize.gallery_phone(image)
def phone_poster(self): if self.video_poster: image = Resize(self.video_poster) return Resize.gallery_phone(image) else: return self.phone_default