20 lines
741 B
Python
20 lines
741 B
Python
"""Overridden thumbnail engine."""
|
|
from sorl.thumbnail.engines.pil_engine import Engine as PILEngine
|
|
|
|
|
|
class GMEngine(PILEngine):
|
|
|
|
def create(self, image, geometry, options):
|
|
"""
|
|
Processing conductor, returns the thumbnail as an image engine instance
|
|
"""
|
|
image = self.cropbox(image, geometry, options)
|
|
image = self.orientation(image, geometry, options)
|
|
image = self.colorspace(image, geometry, options)
|
|
image = self.remove_border(image, options)
|
|
image = self.crop(image, geometry, options)
|
|
image = self.rounded(image, geometry, options)
|
|
image = self.blur(image, geometry, options)
|
|
image = self.padding(image, geometry, options)
|
|
return image
|