Skip to content

Python script that allows you to quickly rename a large set of images.

Notifications You must be signed in to change notification settings

lsissoko/picCustom

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 

Repository files navigation

picCustom

Python script that allows you to quickly copy and rename a large set of images (e.g. concert or event photos).

#####Settings

  • The typeIn variable lets you limit the target files to a single filetype
  • The remaining variables will determine the new image names of the form newString + delim + count + typeOut

#####Example

newString = "abcd"          # fixed image base string
delim = "_"                 # delimiter
count = 20                  # starting number for fixed images
pad = 2                     # zero padding for fixed image numbers
typeIn = [".jpg", ".png"]   # filetype of images to fix
typeOut = ".jpg"            # filetype of fixed images

The settings above turn ["IMG001.jpg", "IMG002.gif", "IMG003.jpg"] into ["abcd_20.jpg", "abcd_21.jpg"].

  • Note that typeIn = [".jpg", ".png"] kept the second image, a .gif file, from being renamed.

About

Python script that allows you to quickly rename a large set of images.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages