Skip to content

Image Compressor is a powerful and flexible tool that can compress any type of image within a specified folder. It supports popular formats like JPG, JPEG, and PNG and can compress them without needing to specify the extension. With two operating modes (console and graphical interface), the tool is suitable for both programmers and regular users.

License

Notifications You must be signed in to change notification settings

CrashyProjects/ImageCompressor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Image Compressor

Image Compressor is a versatile tool that can compress any type of image located within a specified folder. Here are some reasons why you should choose Image Compressor:

Why should I choose Image Compressor?

Offline

This tool is available for use without an internet connection. We will never collect any data, meaning that your files are safe and secure. You can use this tool to compress private files without any worries!

Limitless

You can compress as many files as you need to, and there is no speed limit to the compression process! The speed of compression is entirely dependent on your computer's specifications.

Multi-Extension

Don't worry about the file extension (jpg, jpeg, png, etc.). Image Compressor can compress any combination of formats without need for additional specifications!

Easy to use and practical

Simply specify the folder where your files are located and the folder where you want to save the compressed images. You don't have to select each file individually. Additionally, the program offers two support options: console and graphical, making it perfect for both programmers and everyday users.

Free

Image Compressor is completely free to use, so you don't have to spend any money on image compression software. Despite being free, it delivers high-quality image compression and fast results, so you can compress your images quickly and efficiently!

Operating modes

Console (Advanced User)

Requirements

  • Python 3.x
  • PIL Library

Usage

python3 imagecompressor.py "/input_folder" "/output_folder" [QualityFactor (0:95)]

Note: Make sure to enclose the folder paths in double quotes ("path") and use forward slashes (/) for folder paths.

Parameters

  • input_folder: The folder containing the images that need to be compressed.
  • output_folder: The folder where the compressed images will be saved.
  • QualityFactor (optional): An integer value from 0 (worst quality) to 95 (best quality) that determines the level of compression to apply. If not specified, the default value of 5 will be used.

Example

Suppose you have a folder named /home/USER/ImageCompressor/test/input that contains several images you want to compress, and you want to save the compressed images to a folder named /home/USER/ImageCompressor/test/output. You want to use a quality factor of 30 for the compression.

  1. Open a terminal or command prompt in the directory where the script is located.

  2. Run the following command:

    python3 imagecompressor.py "/home/USER/ImageCompressor/test/input" "/home/USER/ImageCompressor/test/output" 30
    

    Alternatively, if you are already located in the "/home/USER/ImageCompressor/" directory, you can run the following command (not recommended*):

    python3 imagecompressor.py "/test/input" "/test/output" 30
    

    *Note: If the output folder doesn't exist, it will be created without the pwd.

The script will compress all the images in the /home/USER/ImageCompressor/test/input folder and save the compressed images to the /home/USER/ImageCompressor/test/output folder, using a quality factor of 30. Once the compression is complete, a message will be displayed indicating that the process is complete.

Graphical Interface (User Friendly)

//TODO

About

Image Compressor is a powerful and flexible tool that can compress any type of image within a specified folder. It supports popular formats like JPG, JPEG, and PNG and can compress them without needing to specify the extension. With two operating modes (console and graphical interface), the tool is suitable for both programmers and regular users.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages