2

I have many screenshots from video games over the years that I want to convert while maintaining their timestamps so I can keep them chronologically organized with other images.

I've already used an image converter, but it resets their date attributes.

DavidPostill
  • 162,382
Milo
  • 193
  • 1
  • 7

2 Answers2

3

The batch conversion function of IrfanView has an advanced option to keep date and time.

  • Use File/Batch Conversion.
  • Select the pictures you would like to convert.
  • Mark 'use advanced options'.
    There is a button ' Advanced', which will open a window with the converting options.
  • Under MISCELLANEOUS use the option 'Save files with original date/time'.
Joachim
  • 222
3

This powershell script might do the job:

#copy timestamp from files in folder A to files in folder B.

#user file folders (default assumes powershell script is in parent folder of both A and B)
$A = ".\bmp" #source
$B = ".\png" #target

$count = 0
$B_content = ls $B

foreach($file in ls $A){
    $otherfile = $B_content[$count]
    $otherfile.LastWriteTime=$file.LastWriteTime;
    $count++
}
jiggunjer
  • 1,571