Skip to content

Script for advanced sorting of photos. You can set name format by name, folder structure, remove duplicates etc.

Notifications You must be signed in to change notification settings

vidklopcic/PictureOrganizer

Repository files navigation

PictureOrganizer

PictureOrganizer is script for advanced sorting of photos. You have full control of naming, and folder structure.

You can download program bundled with gui from SourceForge - http://sourceforge.net/projects/picturemessorganizer/

Features

  • assemble name from many parameters retrieved from original file and folder (%Y_%m_%d ({old}) would translate to year_month_day (original filename))
  • filter files by extension
  • remove duplicates, based on size and date
  • if copying from old archive you can remove date from beginning and keep previous name of already sorted directories. (2014_01_01 new year would set {old} parameter to new year, which means you can change date format)

Usage

###GUI Run python PictureOrganizer.py to open GUI or python PictureOrganizer.py profile.po to start copying from saved profile.

###Command line Import Core.py and create instance with following parameters

  • source_dirs ... list[string]
  • output_dir ... string
  • formats_filter ... list[string]
  • mode ... string ('move' or 'copy')
  • remove_duplicates ... boolean
  • img_name ... string (replaced are args from datetime object ex. %m %s plus {old} for original filename)
  • folder_name ... string (same as above)
  • remove_date_from_old_dir_name ... boolean (following regex is performed on dir names: ^[0-9-_.\s]+')

#####Example

import Core as PictureOrganizer
po = PictureOrganizer(mode='move',
         formats_filter=['jpg', 'mov', 'mp4', 'png', 'wmv', 'avi', 'tif', 'mts', 'jpeg'],
         remove_duplicates=True,
         img_name='%H;%M ({old})',
         folder_name='%Y_%m_%d')

po.rename_and_sort([r'source_dir_a', 'source_dir_b],
                   r'destination_dir')

Dependencies

IMPORTANT for Windows: if gui isn't displayed correctly install ie10_reg.reg to enable ie10 emulation

About

Script for advanced sorting of photos. You can set name format by name, folder structure, remove duplicates etc.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published