Example #1
0
 def generate(self, images, user=None):
     num_images  = len(images)
     num_rows, num_cols = self._get_layout(num_images)
     
     return AImageCollage._create_collage(self, user, images, 
                                          num_rows=num_rows, 
                                          num_cols=num_cols, 
                                          **self._options)
Example #2
0
 def __init__(self, **kwargs):
     AImageCollage.__init__(self)
     
     self._options = kwargs