Skip to main content

Rexize - Bulk Resize and Convert Images tool

Welcome to the Rexize CLI Tool, an open-source command-line interface tool designed for bulk resizing and converting image files. This tool efficiently processes images in a directory recursively, outputting them to a specified directory with your chosen dimensions and formats. It is built with flexibility and efficiency in mind, to cater to a wide range of use cases and users.

Features

  • Bulk Resizing: Resize multiple images in a batch to your desired dimensions.
  • Format Conversion: Convert images into different formats (e.g., JPEG, PNG) in one go.
  • Recursive Directory Processing: Process images in a directory and its subdirectories.
  • Custom Output Directory: Specify a different directory to output the processed images.

About

This CLI tool for bulk resizing and converting image files has wide-ranging applications, benefiting users in web development, digital marketing, photography, and data science. It streamlines workflows, ensures consistency in image quality and size, and facilitates efficient storage and transfer.

Potential Use Cases

This tool is versatile and can be beneficial across various fields. Its potential use cases and benefits span several domains, including but not limited to:

  1. Web Development and Design: Optimize images for web usage, ensuring fast loading times and responsiveness without compromising quality. Bulk prepare thumbnails, hero images, and other assets for websites.
  2. Digital Marketing: Prepare images for different social media platforms, email campaigns, and online ads with ease.
  3. Photography: Resize and convert images for client delivery, portfolio display, or contest submissions efficiently.
  4. Data Science and Machine Learning: Automate the preprocessing of images for computer vision projects.
  5. Archiving and Digital Libraries: Standardize image sizes and formats for digital archiving purposes.
  6. Personal Use: Manage personal image collections, optimizing for storage or preparing for social media and personal websites.

Benefits

  • Efficiency and Time-Saving: Automates a task that would be incredibly time-consuming if done manually, especially for large image collections.
  • Quality and Consistency: Ensures that all images meet set criteria for size and format, maintaining a high standard across a project or campaign.
  • Open-Source Collaboration: Being open-sourced, it encourages collaboration and contributions from other developers, leading to new features, bug fixes, and improvements.
  • Customization and Flexibility: Users can adapt the tool to fit their specific needs, whether that's integrating it into larger workflows or customizing it for unique project requirements.
  • Resource Optimization: Helps in optimizing web pages by reducing load times and improving user experience, which can contribute to better SEO rankings and user retention.

Getting Started

To get started with Rexize, please ensure you have the Prerequisites and follow the installation instructions below:

Prerequisites

  • Python 3.12 or higher (tested on 3.12, 3.13 and 3.14)
  • Pip package manager
  • Basic knowledge of the command line interface for now. A GUI wrapper is in the works.

Installation

pip install rexize

Usage

rexize [options] input_folder output_folder


  Bulk resize and convert images from a folder recursively.


  positional arguments:
    input_folder          Input folder containing images
    output_folder         Output folder for resized images

  options:
    -h, --help            show this help message and exit
    -W WIDTH, --width WIDTH
                          Width to resize the image. Suffix with for percentage
    -H HEIGHT, --height HEIGHT
                          Height to resize the image. Suffix with for percentage
    -M MAX_SIZE, --max-size MAX_SIZE
                          Maximum size in pixels for the image. Resize if larger than this size
    -f FORMAT, --format FORMAT
                          Format of the output image: JPEG, PNG, WEBP, GIF, TIFF, BMP
    --rgb                 Downscale RGBA images to RGB
    --grayscale           Downscale images to Grayscale
    -q, --quiet           Suppress all output messages, except errors
    --verbose             Verbose output for debugging

Project URLs

How to Contribute

We welcome contributions from the community, whether it's adding new features, fixing bugs, or improving documentation. If you have a feature request or have identified an issue, please open an issue on GitHub. We also encourage you to fork the repository and submit pull requests with your improvements.

Features TO DO

  • User documentation
  • Bulk renaming image files
  • Rotation and Cropping support
  • Custom filters
  • A new GUI Wrapper
  • Increase Test Coverage to above 90%

Metadata

Release files for rexize 0.3.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for rexize 0.3.0
File Size Uploaded Provenance Actions
rexize-0.3.0.tar.gz 8.0 kB Without provenance Details for rexize-0.3.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for rexize 0.3.0
File Interpreter ABI Platform Actions
rexize-0.3.0-py3-none-any.whl Python 3 none any Details for rexize-0.3.0-py3-none-any.whl

Total release size: 17.9 kB

Release files / rexize-0.3.0.tar.gz

Download URL rexize-0.3.0.tar.gz
Size 8.0 kB
Tags Source
SHA-256 checksum
How to use checksums
aba0d5cb8d3011f9e7e9bab2c36ff725326b7b54b469a127f92941bdd2269125
BLAKE2b-256 checksum
How to use checksums
6825012f393cb0f4a002b5fefe9b93ee1db4ed184fd27e44646b3bd3dbe6447a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.5.1 CPython/3.14.8 Linux/7.2.15-1-omarchy

Release files / rexize-0.3.0-py3-none-any.whl

Download URL rexize-0.3.0-py3-none-any.whl
Size 9.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ebdedd3d5063a3a5b77192d838abf03a5048d227b4451428cdb5c299c8f3ce71
BLAKE2b-256 checksum
How to use checksums
2b4ff904c53fcda75580014dc6e9c8123df3c5b31721d8334c4d607927cabb65
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.5.1 CPython/3.14.8 Linux/7.2.15-1-omarchy

Security for rexize 0.3.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page