ImgFixer is a tool for fixing image extensions in a directory.
Project description
ImgFixer Documentation
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:
- Enter the path of the directory containing images.
- Click submit to process the images.
- View the report of corrected file names.
License
ImgFixer is licensed under the Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International license.
Author
Krishnakanth Allika
Email: wheat-chop-octane@duck.com
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file imgfixer-0.1.0.tar.gz.
File metadata
- Download URL: imgfixer-0.1.0.tar.gz
- Upload date:
- Size: 4.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ae85e0b33b57d6ec0b327a3b473519f344cd1e7419b54d1cbc564ccb574b4733
|
|
| MD5 |
bc4a1125e783be639c25ce987398741e
|
|
| BLAKE2b-256 |
cf2777b9d044609ea463e54e123417b9acf6b3b9129cebe81bf4f27e6098a63a
|
File details
Details for the file imgfixer-0.1.0-py3-none-any.whl.
File metadata
- Download URL: imgfixer-0.1.0-py3-none-any.whl
- Upload date:
- Size: 4.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a4f362b5b754694e7ffe775c244a7023f13a5ef4f9e14a26d7de6fe1b7dfdb7b
|
|
| MD5 |
d7b0ffa22319641077d4998b2b0406bf
|
|
| BLAKE2b-256 |
d4e598a768a5338be2b30c4a353df203c2913ab276d60cfbf6490e15a9ca5302
|