Hello, can you advise how I can convert a local image in jpg format to png format and save it in the same folder using node-red?
I have the imagemagick library installed.
In node red I used the exec node: and in the command entry I put the following:
And why I want to do it. I need the plugin in esphome to be able to load a png image and the only thing I have available are images in jpg format from the Internet (a weather map image that changes every hour under the same name)
there is another solution for converting jpg to png in home assistant?
Forget node red then. It is an unnecessary complication.
But I think the first problem you will face is that the last time I looked images can’t dynamically be added like that. They are statically compiled in at compile time.
Creates the logo image in the firmware as it is at compile time. If the online image changes an hour later, the firmware won’t update.
As I say, that was the situation last time I looked at it. There was a proposal to create a dynamic image component, but I am not sure it has actually been added.
Also I don’t know whether LVGL will change the position when it is merged.
I have tried both LVGL and online_image and it works, I solved it on discord. The only problem is that online_image currently supports png and not jpg, so I’m looking for how to compile the image
Installing in HA’s terminal installs inside the HA container not node red. Nodered also uses npm, you can add npm packages on the configuration page of the addon.