/JPEG-Encoder

JPEG Image Encoder using Java

Primary LanguageJava

JPEG ENCODER

JPEG is a lossy compression algorithm based on imperfections of the human vision. It helps in image compression hence decreasing the size of the image.

You can learn more about it's working here.

Tools and Library used

  1. AWT
  2. Files IO
  3. Javafx ImageIO

Sample demonstration

Original Image

Size: 734,888 bytes

original

With 0.5 compression ratio

Size: 481,185 bytes

compressRatio_0 5

With 0.1 compression ratio

Size: 166,285 bytes

original

With 0.05 compression ratio

Size: 107,771 bytes

compressRatio_0 05

With 0.01 compression ratio

Size: 79,342 bytes

compressRatio_0 01

With 0.001 compression ratio

Size: 79,342 bytes

compressRatio_0 001

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

Made by

Sudhanshu Mallick