本文实例讲述了python使用pil模块实现给图片打水印的方法。分享给大家供大家参考。具体实现方法如下:
import image, imageenhance
def reduce_opacity(im, opacity):
“””returns an image with reduced opacity.”””
assert opacity >= 0 and opacity
A programmer’s note boke for work and life
本文实例讲述了python使用pil模块实现给图片打水印的方法。分享给大家供大家参考。具体实现方法如下:
import image, imageenhance
def reduce_opacity(im, opacity):
“””returns an image with reduced opacity.”””
assert opacity >= 0 and opacity