Skip to main content

ImgFixer is a tool for fixing image extensions in a directory.

Project description

ImgFixer

Overview

ImgFixer is a lightweight FastAPI-based application that scans a given directory and corrects incorrect image file extensions. It determines the actual file type of images and renames them with the correct extension to ensure compatibility and consistency.

Purpose

Many image files have incorrect or missing extensions, which can cause issues with software that relies on proper file formats. ImgFixer automates the process of verifying and correcting image file extensions, making file management more reliable and efficient.

Features

  • Detects image file formats using content-based identification (not just file extensions).
  • Automatically renames files with incorrect extensions to their correct format.
  • Provides a web interface for ease of use.
  • Supports popular image formats such as JPEG, PNG, and WebP.

Installation

Creating a Conda Virtual Environment (Recommended)

Before installing ImgFixer, you can create and activate a conda virtual environment:

conda create -n imgfixer uv
conda activate imgfixer

Installing ImgFixer

You can install ImgFixer using uv (recommended):

uv pip install imgfixer

Alternatively, you can install ImgFixer as a Python package using pip:

pip install imgfixer

Usage

Running the Application

You can run ImgFixer using the command line:

imgfixer

Web Interface

After running the application, open your browser and navigate to:

http://localhost:8083/

From the web interface:

  1. Enter the path of the directory containing images.
  2. Click submit to process the images.
  3. View the report of corrected file names.

License

ImgFixer is licensed under the GNU General Public License v3 (GPLv3).

Author

Krishnakanth Allika
Email: wheat-chop-octane [at] duck [dot] com

Changelog

[0.1.8] - 2025-03-23

What's New

  • Enhanced Error Handling: Improved error messages for better troubleshooting.

Improvements

  • Bug Fixes: Fixed minor bugs.

[0.1.7] - 2025-03-23

What's New

  • Command-Line Support: You can now run ImgFixer directly from the terminal to fix image extensions in a folder.
  • Simplified Usage: Easily switch between the UI and command-line mode.

Improvements

  • Optimized performance and updated dependencies.
  • Minor fixes and enhancements for a smoother experience.

[0.1.6] - 2025-03-20

  • First beta release of ImgFixer.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

imgfixer-0.1.8.tar.gz (27.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

imgfixer-0.1.8-py3-none-any.whl (28.0 kB view details)

Uploaded Python 3

File details

Details for the file imgfixer-0.1.8.tar.gz.

File metadata

  • Download URL: imgfixer-0.1.8.tar.gz
  • Upload date:
  • Size: 27.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for imgfixer-0.1.8.tar.gz
Algorithm Hash digest
SHA256 87678b270faccf415c25a89eb19a9e89bb1236d955a5a0b3b316100c11f19a5e
MD5 bf57732ba0ec53da5eaebb9183086acf
BLAKE2b-256 3d521c6f7613f105aa625aa21a04333a7aa2a037f21ff68772890489de507b27

See more details on using hashes here.

File details

Details for the file imgfixer-0.1.8-py3-none-any.whl.

File metadata

  • Download URL: imgfixer-0.1.8-py3-none-any.whl
  • Upload date:
  • Size: 28.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for imgfixer-0.1.8-py3-none-any.whl
Algorithm Hash digest
SHA256 7fc109c276682594e527babc20a5874abe97695a9c9adfbb402e08c81a350075
MD5 6578dd64a2cbf689f37d9fbe7978c5e0
BLAKE2b-256 c9477ebde60562bd572a4f2b60705020ef0aac78dc1f0ceb2cdee452a8246163

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page