Add an awesome Watermark to your image (licence:cc0,author:rsiebes, date:06-05-2021 )
Full identifier: http://purl.org/np/RAXl7zRdHHahQFz1QLAbI4z0Yvmq0ptC7dMgKOgK160Ss
Nanopublication
Add an awesome Watermark to your image (licence:cc0,author:rsiebes, date:06-05-2021 )
ScriptTask
Step
This is a local identifier minted within the nanopublication.
http://purl.org/np/RAXl7zRdHH...#step
http://purl.org/dc/terms/description
(this is a literal)
"@is_fairstep(label='Add an awesome Watermark to your image (licence:cc0,author:rsiebes, date:06-05-2021 )')
# Give it your own name:
def my_watermark_step(image, text):
from PIL import ImageFont
from PIL import ImageDraw
from PIL import Image
watermark_image = image.copy()
draw = ImageDraw.Draw(watermark_image)
# add watermark
draw.text((0, 0), text,
(0, 0, 0))
# add watermark
draw.text((0, 0), text,
(255, 255, 255))
# new_image = ....
return watermark_image
"
.
0000-0000-0000-0000,
14 Jun 2021, 16:38:02 UTC
References