Matches in Nanopublications for { <http://purl.org/np/RApSN9ryCI2V1HhSAKEdo5H1FhBBaVs5-s4NR_wckvHxo#step> ?p ?o ?g. }
Showing items 1 to 6 of
6
with 100 items per page.
- step type Step assertion.
- step type ScriptTask assertion.
- step label "Rotating an image represented as a string by 180 degrees" assertion.
- step description "@is_fairstep(label='Rotating an image represented as a string by 180 degrees') def rotate_image(imgstr:str) -> str: imgIn = Image.open(io.BytesIO(imgstr)) imgOut = imgIn.transpose(Image.ROTATE_180) imgOutStr = io.BytesIO() imgOut.save(imgOutStr, format="png") return imgOutStr.getvalue() " assertion.
- step hasOutputVar rotate_image-output1 assertion.
- step hasInputVar imgstr assertion.