Skip to content

Instantly share code, notes, and snippets.

@MabezDev
Last active October 23, 2018 17:10
Show Gist options
  • Save MabezDev/ca2b10193f2f48a0b82baa814ea462b1 to your computer and use it in GitHub Desktop.
Save MabezDev/ca2b10193f2f48a0b82baa814ea462b1 to your computer and use it in GitHub Desktop.
Create a 16bit R5G6B5 raw image for embedded displays.
  • Import your image or create image with GIMP.

  • Export as bmp -> advanced options -> 16bit

  • Then to get the raw bytes run tail -c $bytes image.bmp > image.raw where $bytes is w * h * 2 of the image. This removes the BMP header.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment