Skip to content

An image converter that converts bmp file to custom 6-bit color depth file format

License

Notifications You must be signed in to change notification settings

KarolPiasnik/6bit-image-converter

Repository files navigation

Image Converter (.bmp ↔️ .karol)

In this project we've developed a converter that converts .bmp to .karol and then do the same, yet in the opposite direction. By default, Byte Run is performed. The conversion is accompanied by additional operations. First one is converting to Grayscale, to Imposed Color Palette or to Color Palette chosen by Median Cut algorithm. Those last two choices yield in return an image that has 64-color palette. After that, user is prompted to decide whether to use Floyd-Steinberg (a.k.a dithering) algorithm or not. Last option consists of choices for what to do with the output - save it as .bmp, .karol or not to save it at all.


Preview

Original Image Median Cut (includes Dithering) Grayscale (includes Dithering)

Launching the Converter

In order to launch the converter make sure you have properly intialised SDL with Visual Studio 2017.
Seting Up SDL with Visual Studio 2017
Note: SDL library in 1.2.15 version was used.

To-Do List:

  • Open and save .bmp file
  • Find closest color in Imposed Palette
  • Median Cut algorithm
  • Perform Grayscale conversion
  • Floyd-Steinberg algorithm
  • Open and save .karol file properly
  • Fix Byte Run to run properly with any given input

Authors

About

An image converter that converts bmp file to custom 6-bit color depth file format

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages