Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@mirzak
Created November 9, 2017 10:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mirzak/664a5b9ab215d8cb6d3cdceca9fa2eea to your computer and use it in GitHub Desktop.
Save mirzak/664a5b9ab215d8cb6d3cdceca9fa2eea to your computer and use it in GitHub Desktop.
Convert image to ppm format suitable for Linux splashscreen
The logo_linux_clut224.ppm was generated in the following way
- open your desired splash screen image (bmp, jpeg, whateva) in GIMP
- File->Export As...
- Change the name to <image name>.ppm and save
- Choose "RAW" in the pop-up window that is showed
- Now we run the following comands
# This is to reduce color count to 224
ppmquant 224 <image name>.ppm > <image name>_224.ppm
# Convert to ASCII!
pnmnoraw <image name>_224.ppm > logo_linux_clut224.ppm
Replace the file in this directory with the result from above commands.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment