Wow I didn’t expect so many solutions.
I’m almost there, I ended up using bits and peices of all your ideas.
I scraped the idea of going pixel by pixel, it just ended up being too large and ineficient, as @Dimitar_Venkov demonstrated. I wanted more of a single node I could pop whenever I wanted. I also didnt feel like losing image resolution.
I decided to encode the image with base64 as @Andreas_Dieckmann sugested, but it didn’t recognise Base64 as a module so I used binascii instead.
With the ascii encoded image string I can now recreate the image by decoding it and saving it in a temp file as @awilliams proposed, I chose the current working directory, for simplicity.
I’m down to the last two hurdles:
I want to include the File.FromPath and Image.ReadFromFile nodes in the python script and I am unsure of the proper syntax
I want to include the Ascii string in the python script without it throwing me a: EOL while scanning single-quoted string. I assume it’s about backslashes or that the ascii might have quotes. Could it be compressed even more with other forms of encoding?
HardCodedLogo.dyn (67.0 KB)
Point two has been fixed using tripple quoted string. I would have known earlier if I knew how to read. Thanks @Dimitar_Venkov