Skip to content

phucnm/pjpeg_encoder

Repository files navigation

pjpeg_encoder

This is for experimental purpose, no image viewer.

Usage

To compress a bmp (only 24 bit bmp is supported for now due to the bmp lib) to pjpeg,

./pjpeg <low/medium/high> inputfile.bmp compressed.pjpeg

To decompress back to a bmp,

./pjpeg -d compressed.pjpeg decompressed.bmp

Demo

The Lena bmp image (786 KB) is compressed in 3 settings: high, medium and low. figure

The compression ratios are:

  • low: 56.14 (14 KB)
  • medium: 35.72 (22 KB)
  • high: 21.8 (36 KB)

To visually evaluate all images in the test_images folder, run bash test.sh.

About

A toy image encoder and decoder similar to jpeg

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages