Adjusting dates on several .jpgs

Need help with your PC or Modding Projects?
Post Reply
Ivo
Next-Gen
Posts: 3627
Joined: Tue Mar 28, 2006 11:24 am
Location: Portugal

Adjusting dates on several .jpgs

Post by Ivo »

I want to correct the date of several photos taken during a period of several months where (without me noticing) the camera had reset its date. The pictures' dates are therefore all off by the same number of days.

Ideally I would want to just round them up in a place and run a batch job that edits the relevant info (I don't know which info it is, they are .jpegs and in quick google searches I've seen EXIF mentioned) and sets it forward X number of days. Of course to complicate matters I suspect that any existing tools will reset the date to a given date, as I doubt there is anything custom-made for my problem (considering the issue with months with 30 and months with 31 days in particular!).

If you guys have any ideas I would like to hear them - maybe there is a way to make some sort of Script to do this?
Maybe this will work:
http://www.sno.phy.queensu.ca/~phil/exiftool/

Ivo.
Hatta
Next-Gen
Posts: 4030
Joined: Tue May 06, 2008 8:33 pm

Re: Adjusting dates on several .jpgs

Post by Hatta »

Looks like you don't even need a script. I found this in exiftool's man page:

Code: Select all

# add one hour to all images created on or after Apr. 2, 2006
exiftool -alldates+=1 -if '$CreateDate ge "2006:04:02"' dir
You can do it in one line. If you already have the files you want to alter sorted into a directory, you can even skip the -if.
We are prepared to live in the plain and die in the plain!
gtmtnbiker
Next-Gen
Posts: 4320
Joined: Fri Jan 09, 2009 1:14 pm
Location: Massachusetts

Re: Adjusting dates on several .jpgs

Post by gtmtnbiker »

Nice response, Hatta. I was going to suggest a perl script that opened each file in binary mode and massage it appropriately. Your solution is far easier.
User avatar
flojocabron
Next-Gen
Posts: 4155
Joined: Thu Aug 19, 2010 2:15 am
Location: on the border

Re: Adjusting dates on several .jpgs

Post by flojocabron »

could this work?

its a program called psp Image Sequencer. http://42ninjas.com/PSPImageSequencer/help.html

it works for when you put comics on your psp.

it sorts the names of the images in number order.

so wouldn't it be possible to name each one in order and use the program to make it in sequencial order?

I first learned about this because when I first tired to put comics on my psp they would be out of order. they were comming up fine when i checked them on the pc. but on the psp they were out of order. This program fixes that problem by restamping the date and sends it to a rar.

give it a try and see if its possible
2600 and jr,5200,nes/top loader, master system, intellivision, TG-16, genesis 1,2,3, SNES, snesJR, CDX, 3DOfz10, gamegear, gameboy and pocket, GBC, sega saturn, PSOne w/screen, Virtual Boy, N64, NGPC, Gameboy Advance sp, Dreamcast, Black Dreamcast, oXBOX, Playstation 2, PStwo, Gamecube, gameboy player, DS lite,DSi XL, PSP1000/3000,Wii,PS3 120gb,3DSXL, xbox 360, PSvita, PS4
Post Reply