{
    "name": "image-rotation",
    "description": "DeltaTwin demonstrator performing an image rotation. Supports standard formats like JPG, PNG, etc.",
    "license": {
        "name": "LGPLv3",
        "url": "https://www.gnu.org/licenses/gpl-3.0.txt",
        "copyrights": [
            { "years": [2023], "company": "GAEL Systems" }
        ]
    },
    "owner": "Gael Systems",
    "inputs": {
        "image": {
            "type": "Data",
            "description" : "URL of the image to rotate"
        },
        "angle": {
            "type": "integer",
            "description": "Rotation angle in degree"
        }
    },
    "outputs": {
        "rotatedImage": {
            "type": "Data",
            "description": "Rotated image"
        }
    },
    "models": {
        "rotation": {
            "path": "models/rotation",
            "type": "python",
            "inputs": {
                "img": {
                    "type": "Data"
                },
                "angle": {
                    "type": "integer"
                }
            },
            "outputs": {
                "out": {
                    "type": "Data",
                    "glob": "R_$(inputs.angle)_$(inputs.img.basename)"
                }
            },
            "parameters": {
                "pythonVersion": "3.11",
                "pipRequirements": [
                    { "name": "Pillow", "version": "10.1.0" }
                ],
                "hardwareRequirements": {
                    "cpu": "1000m",
                    "ram": "3Gi"
                },
                "command": "python rotate.py $(inputs.img) $(inputs.angle)"
            }
        }
    }
}
