Zip Watermark Image.

16 views
Skip to first unread message

raje...@spericorn.com

unread,
May 18, 2015, 7:24:41 AM5/18/15
to django-...@googlegroups.com
Hi,

I am new to imagekit, I am stuck with zip content of  TextWaterMark() class.

Here, I need a text and image watermark on the original image, and download its zip file.Please look at my code snippet for understanding,

im = Image.open(image_data,'r')
title_mark = TextWatermark("Views from Drave",
font=("/Library/Fonts/Arial Bold.ttf", 16),
text_color="red",
position=(20, 20),
opacity=1)
img = title_mark.process(im)

Fisrt, I getting this text watermark, then I passing image to watermark on this object, finally I am getting I PIL.Image.Image Instance,next I need to zip this image.

How can I zip this Image instance or get info for zipping this without affecting database?

also

How can I change the bg color?


Reply all
Reply to author
Forward
0 new messages