Matches in Nanopublications for { ?s ?p ?o <http://purl.org/np/RAkDu_AmfOQdIrjGM2dqJXmJYyxwMfle6UPhsgXFgCLdE#assertion>. }
Showing items 1 to 17 of
17
with 100 items per page.
- img type Variable assertion.
- out1 type Variable assertion.
- LinguisticSystem type ComputerLanguage assertion.
- step type ScriptTask assertion.
- step type Step assertion.
- img label "img" assertion.
- out1 label "out1" assertion.
- LinguisticSystem label "python" assertion.
- step label "Make white background of image transparent" assertion.
- img comment "None" assertion.
- out1 comment "None" assertion.
- LinguisticSystem versionInfo "3.7.9.final.0" assertion.
- LinguisticSystem seeAlso Q28865 assertion.
- step description "@is_fairstep(label='Make white background of image transparent') def white_to_transparency(img): from PIL import Image img = img.convert("RGBA") data = img.getdata() new_data = [] for item in data: if item[0] == 255 and item[1] == 255 and item[2] == 255: new_data.append((255, 255, 255, 0)) else: new_data.append(item) img.putdata(new_data) return img " assertion.
- step language LinguisticSystem assertion.
- step hasInputVar img assertion.
- step hasOutputVar out1 assertion.