sub:assertion {
sub:LinguisticSystem a schema:ComputerLanguage ;
rdfs:label "python" ;
rdfs:seeAlso <
https://www.wikidata.org/wiki/Q28865> ;
owl:versionInfo "3.7.3.final.0" .
sub:image a pplan:Variable ;
rdfs:comment "None" ;
rdfs:label "image" .
sub:out1 a pplan:Variable ;
rdfs:comment "None" ;
rdfs:label "out1" .
sub:step dct:description """@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
""" ;
dct:language sub:LinguisticSystem ;
pplan:hasInputVar sub:image ,
sub:text ;
pplan:hasOutputVar sub:out1 ;
a bpmn:ScriptTask ,
pplan:Step ;
rdfs:label "Add an awesome Watermark to your image (licence:cc0,author:rsiebes, date:06-05-2021 )" .
sub:text a pplan:Variable ;
rdfs:comment "None" ;
rdfs:label "text" .
}