Does anyone have a CLI image converter script? #5326
Replies: 1 comment
-
Posted at 2022-10-27 by @gfwilliams There isn't anything, but you could add one. The tools are at https://github.com/espruino/EspruinoWebTools So all you have to do is copy Since Canvas/etc isn't really provided in Node.js you'd have to use some other image loader and then just pass the RGBA data into imageconverter's RGBAtoString function though. Posted at 2022-10-27 by @gfwilliams ... also down the bottom of http://www.espruino.com/Graphics#rendering there are instructions on using ImageMagick to create an image on the command-line, but they are quite basic and deal only with creating the Posted at 2022-10-27 by tipishev Thanks Gordon! I found an alternative approach: hacking around the Webtool's
:) Posted at 2022-10-28 by @gfwilliams That's a neat idea! If you've got something that works nicely it'd be great if you could contribute that back - it could be really handy if https://www.espruino.com/Image+Converter accepted multiple files Posted at 2022-10-28 by tipishev Of course! If I have success in that direction I will send a PR. |
Beta Was this translation helpful? Give feedback.
-
Posted at 2022-10-26 by tipishev
Hi! I need to convert multiple PNG files to compressed image strings and doing so via online image converter (which is awesome for small tasks by the way!) can get a bit tedious. Does anyone have a command line tool for that?
Thank you!
Beta Was this translation helpful? Give feedback.
All reactions