Skip to main content

Python Image Converter

PyPI version All Contributors

The Python Image Converter is a user-friendly CLI tool designed for hassle-free batch conversion of image files.

Features

  • Bulk Conversion: Say goodbye to the tedious one-by-one image conversion. Convert hundreds of images at once.
  • Supported File Types: DNG, CR2, CRW, NEF, PEF, ERF, ORF, PPM, MOS, MRF, MRW, SRW, PSD, TIF, and more.
  • Fast: Multi-core support.
  • Customizable Output: Specify your converted images' output directory, resolution, and format

Install

Using pip (recommended)

$ pip3 install raw_image_converter

Running it from the repo

 git clone https://github.com/achimoraites/Python-Image-Converter.git [my-app-name]
 cd [my-app-name]

 pip install -r requirements.txt

 python -m raw_image_converter --s <Enter-Path-Of-Directory>

Example usage

Arguments

  • -s, --src (required): set the path to the directory you want to convert (source)!
  • -t, --tgt: where to store the converted images (target); by default, they are stored in the "converted" folder.
  • -d, --delete-source-directory: removes the directory with the original images (source).
  • -r, --resolution: allows to set the converted image resolutions; you can use numbers or percentages: e.g., 75% -> width and height are 75% of the original size, 1000,1500 -> width to 1000px and the height to 1500px
  • -e, --ext: specify the output image format for the converted images; by default, it is JPG. Valid options are:
    • .jpg
    • .png
 # simple usage
 raw_image_converter -s <Enter-Path-Of-Directory>

 # set a custom target image format
 raw_image_converter --s <Enter-Path-Of-Directory> --ext '.png'

 # Advanced usage 1
 raw_image_converter -s images -t converted/png -r 25% -e .png -d

 # Set custom resolution 1
 raw_image_converter -s images -t converted/jpg -r 1024,768

 # Set custom resolution 2
 raw_image_converter -s images -t converted/jpg -r 50%,33%

And you are done!

ScreenShot

Python Image Converter

Contributors

Download files

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

Source Distribution

raw-image-converter-1.1.1.tar.gz (6.9 kB view details)

Uploaded Source

Built Distribution

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

raw_image_converter-1.1.1-py3-none-any.whl (6.8 kB view details)

Uploaded Python 3

File details

Details for the file raw-image-converter-1.1.1.tar.gz.

File metadata

  • Download URL: raw-image-converter-1.1.1.tar.gz
  • Upload date:
  • Size: 6.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.18

File hashes

Hashes for raw-image-converter-1.1.1.tar.gz
Algorithm Hash digest
SHA256 d9a4f780acb50da2b78d5188d62437897f15f5ab051427a74f5ff87e70054c57
MD5 a1f1ca1a6da7827aad79dd3f007e1de9
BLAKE2b-256 f485828bfc6f061b2c6900c2328c8ce896fee6065b73ff929dba06079c55b37a

See more details on using hashes here.

File details

Details for the file raw_image_converter-1.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for raw_image_converter-1.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 82ba4c242b5491b92ed142e400ef351ed6e1ef914e32cd6612af0c91cbb64003
MD5 4540c99dff10aeab9df5404ed83af4ae
BLAKE2b-256 b32dfdd9c64e471fb9ae2cabc8269747f61bf18695fe2f7693e4b39dfad13322

See more details on using hashes here.

Release history Release notifications | RSS feed

1.1.3

2 files

1.1.2

2 files

This release

1.1.1 This release

2 files

1.1.0

2 files

1.0.5

2 files

1.0.4

2 files

1.0.3

2 files

1.0.2

2 files

1.0.1

2 files

1.0.0

2 files

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