Skip to content

Processes a directory of images, turning an un-ordered mess, into a nice, date ordered mess. This was borne of having one too many "Collections" of photos stored randomly. You need them all in one place right?

MikePearce/Image-Processing

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

# Image Processing.

Processes a directory of images, turning an un-ordered mess, into a nice, date
ordered mess. This was borne of having one too many "Collections" of photos
stored randomly. You need them all in one place right?

-- Requirments;
You'll need PHP installed on whatever machine you're going to run this on. 5.2
at a minimum.

-- Usage:
Simply modify process.php, setting the inputdir, output dir and any of the below:

setDirYear(): Will set "Year" directories (/2010)
setDirMonth(): Will add "Month" directories (/2010/05)
setDirDay(): will set day directories (/2010/05/23)
setImageTypes(): is an array of image extensions you want to use.
setDateStyle(): Use the php date() method of dates style (Y-m-d)


Then, run it like so:
php -f ./process.php

-- Warranties
None. This is an experimental script, if this deletes, or otherwise breaks
your image library, don't come running to me. This can be a destructive
script. USE WITH CAUTION

About

Processes a directory of images, turning an un-ordered mess, into a nice, date ordered mess. This was borne of having one too many "Collections" of photos stored randomly. You need them all in one place right?

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages