If you run python3.exe .\LVGLImage.py --h will get the help on how to create the command…
usage: LVGLImage.py [-h] [--ofmt {C,BIN,PNG}]
[--cf {L8,I1,I2,I4,I8,A1,A2,A4,A8,ARGB8888,XRGB8888,RGB565,RGB565_SWAPPED,RGB565A8,ARGB8565,RGB888,AUTO,RAW,RAW_ALPHA,ARGB8888_PREMULTIPLIED}] [--rgb565dither]
[--premultiply] [--compress {NONE,RLE,LZ4}] [--align [byte]] [--background [color]] [--nemagfx] [-o OUTPUT] [--name NAME] [-v]
input
LVGL PNG to bin image tool.
positional arguments:
input the filename or folder to be recursively converted
options:
-h, --help show this help message and exit
--ofmt {C,BIN,PNG} output filename format, C or BIN
--cf {L8,I1,I2,I4,I8,A1,A2,A4,A8,ARGB8888,XRGB8888,RGB565,RGB565_SWAPPED,RGB565A8,ARGB8565,RGB888,AUTO,RAW,RAW_ALPHA,ARGB8888_PREMULTIPLIED}
bin image color format, use AUTO for automatically choose from I1/2/4/8
--rgb565dither use dithering to correct banding in gradients
--premultiply pre-multiply color with alpha
--compress {NONE,RLE,LZ4}
Binary data compress method, default to NONE
--align [byte] stride alignment in bytes for bin image
--background [color] Background color for formats without alpha
--nemagfx export color palette for I8 images in a format compatible with NEMA accelerator
-o OUTPUT, --output OUTPUT
Select the output folder, default to ./output
--name NAME Specify name for output file. Only applies when input is a file, not a directory. (Also used for variable name inside .c file when format is 'C')
-v, --verbose
To generate an imagem in format I1 and output in BIN file, would be something like:
python3.exe .\LVGLImage.py --ofmt BIN --cf I1 ..\..\GUIs\FDR_Simulator\src\img1_white.png
This will create an output folder where the python script is, and the output file will be placed there.
You need some extra requisites to be installed, check prerequisites, not all of them are necessary for LVGLImage-py, would say that only pypng and lz4 are probably required.