Skip to content
This repository has been archived by the owner on Apr 28, 2024. It is now read-only.

This project is a Huffman Compression/Decompression tool built in Python with a Tkinter GUI. The program provides five levels of approach, allowing users to compress and decompress various types of files with increasing complexity

License

Notifications You must be signed in to change notification settings

emircetinmemis/huffman-coding

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Image Compression Using Huffman Coding

This project is a Huffman Compression/Decompression tool built in Python with a Tkinter GUI. The program provides five levels of approach, allowing users to compress and decompress various types of files with increasing complexity

Levels follow as;

  • Text Files: Compress and decompress plain text files.
  • Gray-Scale Images: Compress and decompress gray-scale images.
  • Gray-Scale Images with Differences: Compress and decompress gray-scale images that have been modified with differences.
  • Color Images: Compress and decompress color images.
  • Color Images with Differences: Compress and decompress color images that have been modified with differences.

With this tool, users can effectively reduce the size of their files while maintaining their quality. The program has been designed with usability in mind and includes a simple and intuitive interface.

Environment & Setup

This project held by, python 3.9.0 !

Step by step to setup;

    1. Clone the repository to your local machine. git clone $repository_link

The anaconda is used for environmental setup, if you don't have anaconda, you can directly move to step 4.

    1. Create a virtual environment. conda create -n hfm python=3.9.0
    1. Activate the virtual environment. conda activate hfm
    1. Install the requirements. pip install -r requirements.txt
    1. Run the program. Checkout @Usage section.

Usage

You can directly execute the program with python main.py command.

Screenshot

The screenshots are taken from the graphical usage application.

Photo 1

To-Do

  • Complete Levels.
  • Resturcture the old-knowledged code. In terms of GUI and OOP.

About

This project is a Huffman Compression/Decompression tool built in Python with a Tkinter GUI. The program provides five levels of approach, allowing users to compress and decompress various types of files with increasing complexity

Topics

Resources

License

Stars

Watchers

Forks

Languages