Git Product home page Git Product logo

image-compressor's Introduction

image-compressor

Compresses images.

Usage

In order to compress an image use the following command:

$ python3 compressor.py -c image.png image.bin

To decompress an image use the following command:

$ python3 compressor.py -x image.bin image2.png

Benchmarks

This approach was tested with the Rawzor's Image Compression Benchmark.

The current performarnce is below optimized png with optipng:

image comp. ratio png ratio
cathedral.ppm 1.773578 1.948486
bridge.ppm 1.567508 1.691269
spider_web.ppm 3.547640 3.817402
nightshot_iso_1600.ppm 1.633340 1.774391
hdr.ppm 2.589867 2.879170
nightshot_iso_100.ppm 2.809052 3.084504
big_building.ppm 1.792917 1.913515
leaves_iso_200.ppm 1.681106 1.783960
artificial.ppm 5.879867 11.426134
leaves_iso_1600.ppm 1.496978 1.593128
big_tree.ppm 1.633181 1.728946
flower_foveon.ppm 3.164391 3.299397
fireworks.ppm 3.817746 3.916710
deer.ppm 1.433505 1.510089
mean 1.78325 1.93100

To download the dataset, run:

bash benchmark_download.sh

To reproduce the results, run:

bash benchmark_download.sh

To get the previous table, run:

bash benchmark_download.sh

image-compressor's People

Contributors

autopawn avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.