Skip to content

sam15jain/file_compressor

Repository files navigation

Text File Compressor Web App

About

  • Performs Lossless compression and decompression of .txt files using Huffman Coding technique .
  • Each character is assigned a unique variable length binary code, instead of its 8-bit representation, with more frequent characters having smaller codes. A Huffman Tree is created and stored to generate and decode these codes.
  • Compression ratio usually improves as the file size increases.
  • The website is made responsive (with HTML and CSS ) and interactive (with JavaScript ) .
  • An Info page is added to give more information about Huffman coding.

User Interface

  • Breaks down the process into three steps:

index

  • Step 1 : Upload Your File

step1

  • Step 2 : Select Action

step2

  • Step 3 : Sit Back and Relax

    • Required file gets downloaded automatically when process is complete

    • Compression - Compression Ratio is also displayed

    compression

    • De-compression

    decompression

  • Additional Instructions and Warnings are provided if the above steps are not followed correctly

noFile

smallFile

  • Website is Responsive

responsive

  • Link at the bottom of the page links to an Info page that provides more information about Huffman Coding

info1

info2