Bmp_converter.py does not work

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. :frowning:

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.

  1. Create a folder named main
  2. Download the Python script bmp_converter.py, and save it inside the main folder
  3. Create another folder called bmp inside the main folder
  4. Convert your image into a 24-bit bitmap (.bmp) using Microsoft paint
  5. Save the image inside the bmp folder
  6. Navigate to the main folder using command prompt
  7. Run the command: python bmp_converter.py
  8. If it gives an error about no PIL module found. run the command: pip install pillow
  9. Press (1) for 8-bit colour convert, Enter (2) for 16-bit colour convert
  10. After that you will find the converted .bmp images inside another folder name rgb332 (8-bit) or rgb565 (16-bit) in the bmp 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!!

IMG_20201227_172853|666x500

1 Like