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 (Web Interface)

You can run ImgFixer using the command line:

imgfixer

This will start the ImgFixer web interface. Open your browser and navigate to:

http://localhost:8083/

Command-Line Interface

To process a directory for image extensions using the command line:

imgfixer -dir <dir>

Help

To display the usage information:

imgfixer -help

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.9] - 2025-03-23

What's New

  • Documentation Update: Updated usage documentation for better clarity.

[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.9.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.9-py3-none-any.whl (28.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: imgfixer-0.1.9.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.9.tar.gz
Algorithm Hash digest
SHA256 488b76b458b27b9d11ed50131841df66055be0ad14d07c3df2d68ef48e29f009
MD5 3d973adb4c15f58336c0a525031c0244
BLAKE2b-256 72c24aa9e5a2f6e50c6453fc6eaa7c65fc7c9c20d864a1483e44b824839ca1d0

See more details on using hashes here.

File details

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

File metadata

  • Download URL: imgfixer-0.1.9-py3-none-any.whl
  • Upload date:
  • Size: 28.1 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.9-py3-none-any.whl
Algorithm Hash digest
SHA256 cffb60a17c27cbed4c9f2ffd1287b7d02afd3dc16c0a10d7ec97c9c91d71e6b7
MD5 8ceadb6b200b9b7a962287616b9d39c6
BLAKE2b-256 2d9449f07809ce0c8630a6ae2c77d6229d639c74da91458d9f7fb66c0aa71b53

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