diff --git a/mayan/apps/converter/transformations.py b/mayan/apps/converter/transformations.py index 365f4ae0b7..6e95fc3f04 100644 --- a/mayan/apps/converter/transformations.py +++ b/mayan/apps/converter/transformations.py @@ -75,6 +75,15 @@ class BaseTransformation(object): self.image = image self.aspect = 1.0 * image.size[0] / image.size[1] + def serialize(self): + kwargs = [] + for key, value in sorted(self.kwargs.items()): + kwargs.append( + '{}:{}'.format(key, value) + ) + + return '{};{}'.format(self.name, ','.join(kwargs)) + class TransformationCrop(BaseTransformation): arguments = ('left', 'top', 'right', 'bottom',)