Пример #1
0
 def build_flowable(self):
     width_string = self.get('width')
     align = self.get('align')
     return rt.Image(self.image_path,
                     scale=self.get('scale', 100) / 100,
                     width=convert_quantity(width_string),
                     align=align)
Пример #2
0
 def parse(self):
     return rt.Image(self.get('uri').rsplit('.png', 1)[0])