@@ -0,0 +1,541 @@
+from PIL import ImageDraw%0Afrom PIL import ImageFont%0A%0A%0Adef add_watermark(image, **kwargs):%0A    text = kwargs.get('text')%0A    size_watermark = kwargs.get('size_watermark')%0A    if not text:%0A        return image%0A    drawing = ImageDraw.Draw(image)%0A    font = ImageFont.truetype(%22/usr/share/fonts/truetype/dejavu/DejaVuSans.ttf%22, size_watermark, encoding=%22unic%22)%0A    drawing.text((1, image.height - size_watermark - 1), text, 'black', font=font)%0A    drawing.text((0, image.height - size_watermark - 2), text, 'white', font=font)%0A    return image%0A

Add thumbnail processor