Introducing Inbac: A Quick and Interactive Batch Image Cropper
Inbac is an innovative tool designed to make the process of cropping a large number of images both fast and efficient. Traditional image viewers or editing software can be slow and cumbersome when handling thousands of images. Inbac streamlines this task with its focus on interactivity and speed.
Key Features of Inbac
-
Interactive Cropping: Inbac allows users to quickly select and crop images using simple mouse controls. This feature is particularly useful when dealing with a massive batch of images, as it significantly reduces the time and effort required compared to traditional methods.
-
Batch Processing: Rather than crop images one by one, Inbac lets you handle large numbers simultaneously, enhancing productivity.
-
Customizable Options: Users can specify aspect ratios, resize dimensions, selection box colors, window sizes, image formats, and quality settings, making Inbac highly adaptable to different image cropping needs.
Installation Made Easy
The easiest way to get started with Inbac is to download the single-file executable available on the releases page, assembled with PyInstaller. For users with Python installed, Inbac can also be installed via the pip package manager with a simple command:
pip install inbac
For those who want the latest features, the master branch can be cloned and run using Poetry, a tool that manages dependencies and virtual environments in Python projects.
Examples of Usage
-
Simple Crop: To crop images located in a directory, run Inbac with:
poetry run inbac /home/user/pictures/
This will open and crop images, saving them in a "crops" folder within the same directory.
-
Resized Crops: To crop and resize images to a specific size, you might use:
poetry run inbac -a 1 1 -r 256 256 /home/user/pictures/ /home/user/crops/
This command opens images in a 1:1 aspect ratio and saves the resized images to 256x256 pixels in a specified output directory.
User-Friendly Interface
The intuitive interface uses mouse buttons and keyboard shortcuts:
- Select an Image Area: Use the left mouse button to select a part of the image.
- Save and Navigate: Press 'Z' to save a cropped image and proceed to the next picture. Stay on the same image by pressing 'X'. 'C' allows you to rotate the image by 90 degrees.
- Navigate Through Images: Use the right arrow or right mouse button to move to the next picture, and the left arrow or middle mouse button to go back.
Versatile Command-Line Options
Inbac's command-line interface offers various options to tailor your workflow:
- Aspect Ratio (-a): Define specific dimensions for cropped selections.
- Resize (-r): Set desired width and height for images after cropping.
- Output Settings (-f, -q): Choose the format and quality of the final cropped images.
In conclusion, Inbac is a powerful tool for users looking to enhance their image cropping workflow. With its range of features, customization options, and ease of use, it's an excellent choice for anyone needing to manage large volumes of image cropping efficiently.