Aircoookie / WLED

Control WS2812B and many more types of digital RGB LEDs with an ESP8266 or ESP32 over WiFi!
https://kno.wled.ge
MIT License
14.57k stars 3.12k forks source link

Gzip minifier and C array encoder #357

Closed Aircoookie closed 4 years ago

Aircoookie commented 4 years ago

For developing WLED (and other ESP projects) it would be very helpful to have a simple (CLI or GUI) tool that does two things:

It would be best if both operations could be combined in a single command!

Right now this process requires two webpages: https://online-converting.com/archives/convert-to-gzip/ and https://littlevgl.com/image-to-c-array/ LittleVGL also requires you to rename the input file format to .png for example to function. This process is quite tedious and it would be nice to have a locally running open-source tool for this.

It would probably make sense for you to start a new repo for the tool, as it will be general purpose and not only specifically built for WLED!

I am very grateful if you decide to help me out on this one! Let me know if you need any more information :)

debsahu commented 4 years ago

Greetings, I use VSCode to do all these things:

  1. minify using https://github.com/HookyQR/VSCodeMinify extension (F1 -> Minify)
  2. gzip using 7zip
  3. c-array from the zip file using https://github.com/stef-levesque/vscode-hexdump extension (Right click -> Show HexDump -> Select everything -> Copy to C-array)