I am attempting to use Simple Inkscape Scripting to programmatically construct an image. I have been working through how to place various objects at (x,y) coordinates on the design surface, but what I want to try and do now is to embed a PNG and at the same time modify its hue.
Currently I have this simplistic test program to bring in my image
fname='MyImage.png'
image(fname, (0, 0), embed=True, transform='scale(0.02)')
I know from the scripting system itself that the signature of the image command is:
def image(fname, ul, embed=True, transform=None, conn_avoid=False,
clip_path=None, mask=None, **style):
Using this function, is it possible to programmatically change the hue of a PNG image using either the transform or the style parameters? (I've tried and failed, but that could be anything from my lack of python knowledge to my lack of SVG and CSS knowledge)
The reason I want to do this in a script is that I want to rotate the hue through various steps when embedding several hundred multiple images - and I don't want to do that by hand.