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)
def __init__(self, **kwargs): AImageCollage.__init__(self) self._options = kwargs