I’ve tried this script both on Windows 10 and from inside an Ubuntu 20.04 container. The result is the same for both. The script runs but there are no output files in either bmp/rgb332 or bmp/rgb565. Have you folks tested this on anything besides MacOS?
I just ran this on a Macbook Pro and got the exact same result. No images in the output folder.
In case anyone else runs into the same problem, I didn’t have my images inside the bmp directory. The script doesn’t have any error checking so it will silently fail if it doesn’t find any images inside a directory called bmp.
Hi @Sean_Carolan,
I have tested this on Windows 10 and WSL Ubuntu. Worked both ways.
Please go through the steps below to make sure you followed the process correctly.
- Create a folder named
main
- Download the Python script
bmp_converter.py
, and save it inside themain
folder - Create another folder called
bmp
inside themain folder
- Convert your image into a 24-bit bitmap (.bmp) using
Microsoft paint
- Save the image inside the
bmp folder
- Navigate to the
main
folder using command prompt - Run the command:
python bmp_converter.py
- If it gives an error about no
PIL module found
. run the command:pip install pillow
- Press (1) for 8-bit colour convert, Enter (2) for 16-bit colour convert
- After that you will find the converted
.bmp
images inside another folder namergb332
(8-bit) orrgb565
(16-bit) in thebmp
folder
You could also follow this step-by-step video tutorial:
1 Like
Thank you Lakshan! I was missing a step, my images were not in the bmp folder. Works great now!!
1 Like