Skip to main content

Script to rename images in numberic order

Project description

Image renamer

Production build status

Master build status

Description

img_renamer is a Python script to rename images in numberic order.

Usage

Rename with CLI

This will rename all images in ~/Pictures folder like this: 0000001.png, 0000002.png, 0000003.png...

img_renamer ~/Pictures

Rename non-interactively / automatic yes to prompts

This will rename all images in ~/Pictures folder without asking anything. It will still show list what is being renamed

img_renamer -y ~/Pictures

Renaming modes

Mode 0 / Fill numbers from the end

When using this mode, and you have deleted numbers. The empty space will be filled with new images or from the end of the numbers.

If you run the command and you have the images like this: 0000001.png, 0000003.png, 0000004.png, 0000005.png
It will become like this (The last number 0000005.png will fill the missing 0000002.png): 0000001.png, 0000002.png, 0000003.png, 0000004.png

img_renamer -m 0 ~/Pictures

Mode 1 / Move the numbers backwards

When using this mode, and you have deleted numbers. All numbers will be moved backwards, if you have new numbers, those will be added to the end.

If you run the command and you have the images like this: 0000001.png, 0000003.png, 0000004.png, 0000005.png
It will become like this (0000003.png will become 0000002.png and 0000004.png will become 0000003.png...): 0000001.png, 0000002.png, 0000003.png, 0000004.png

img_renamer -m 1 ~/Pictures

Print help text

Simply run this

img_renamer --help

Author

Miika Launiainen

License

This library is licensed under GPLv3

Project details


Download files

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

Files for img-renamer, version 2.4.0
Filename, size File type Python version Upload date Hashes
Filename, size img_renamer-2.4.0.tar.gz (4.3 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page