2 hours I’m try to resize image with Python.
No one example found on the web and here - on forum.
I try with all variants to resize image with python. No working.
Reason - I don’t known how to use methods which resize image.
I tried this variants.
resize = app.createNode("fr.inria.openfx.OIIOResize", -1, app, dict([("CreateNodeArgsPropNodeInitialName", NatronEngine.StringNodeCreationProperty("Resize"))]))
app.Resize.type.set("Size")
app.Resize.preservePAR.set(False)
Not work
app.Resize.size.x = 300
Not work
app.Resize.size.x.set(300)
Not work
app.Resize.size.set(300, 300)
Not work
app.Resize.size.set(300)
Not work
app.Resize.size = (300, 300)
And any combinations. Not work.
You guys don’t know how to write documentation. Please don’t do this. It doesn’t help people.
In c++ I know how to use any method and any parameter. Here, in Python - I don’t know how to use it.