1.1.7 • Published 11 months ago

img2epaper v1.1.7

Weekly downloads
-
License
Apache
Repository
github
Last release
11 months ago

Describe

This package is used to convert an image into an array that can be displayed on epaper.

The input file should be one of the formats [.png, .bmp, .jpeg], and the output will be either .c or .bin. The .c file can be directly copied into the project and used as a global variable. The .bin file is more suitable for communication over the network, such as obtaining and displaying it through HTTP requests. It should be noted that the size of the input image must be the same as the screen size!

Condition

Your node environment should install the following dependencies

  "dependencies": {
    "chalk": "^4.0.0",
    "commander": "^10.0.1",
    "jimp": "^0.22.8"
  }

Use&Example

  • Enter imgconvert --help to view help

The file name must include a file suffix.

  • Convert the image to a .c file stored in hexadecimal format.

imgconvert -i <input.png> -o1 <output1.c> -o2 <output2.c> -H -m 1

  • Convert the image to a .bin file stored in binary format.

imgconvert -i <input.png> -o1 <output1.bin> -o2 <output2.bin> -B -m 1

1.1.7

11 months ago

1.1.6

11 months ago

1.1.5

11 months ago

1.1.4

11 months ago

1.1.3

11 months ago

1.1.2

11 months ago

1.1.1

11 months ago

1.1.0

12 months ago

1.0.3

12 months ago

1.0.1

12 months ago

1.0.0

12 months ago