OpenStreetMap

Acertar a hora das fotografias

Posted by Jorge Gustavo Rocha on 1 April 2011 in Portuguese (Português)

Sacar a hora de mofificação que ficou no cartão de memória do telemóvel

ls -al --time-style='+%Y:%m:%d %H:%M:%S' -l > /tmp/x.sh

Editar o ficheiro gerado para ficar algo do género:

#!/bin/bash

exiv2 -M"set Exif.Photo.DateTimeOriginal 2011:04:01 11:02:48" Img015.jpg
exiv2 -M"set Exif.Photo.DateTimeOriginal 2011:04:01 11:03:14" Img016.jpg
exiv2 -M"set Exif.Photo.DateTimeOriginal 2011:04:01 11:03:46" Img017.jpg
exiv2 -M"set Exif.Photo.DateTimeOriginal 2011:04:01 11:04:22" Img018.jpg
exiv2 -M"set Exif.Photo.DateTimeOriginal 2011:04:01 11:04:44" Img019.jpg
exiv2 -M"set Exif.Photo.DateTimeOriginal 2011:04:01 11:04:52" Img020.jpg
exiv2 -M"set Exif.Photo.DateTimeOriginal 2011:04:01 11:07:08" Img021.jpg
exiv2 -M"set Exif.Photo.DateTimeOriginal 2011:04:01 11:09:00" Img022.jpg
exiv2 -M"set Exif.Photo.DateTimeOriginal 2011:04:01 11:09:52" Img023.jpg
exiv2 -M"set Exif.Photo.DateTimeOriginal 2011:04:01 11:10:06" Img024.jpg
exiv2 -M"set Exif.Photo.DateTimeOriginal 2011:04:01 11:10:50" Img025.jpg
exiv2 -M"set Exif.Photo.DateTimeOriginal 2011:04:01 11:11:02" Img026.jpg
exiv2 -M"set Exif.Photo.DateTimeOriginal 2011:04:01 11:11:54" Img027.jpg
exiv2 -M"set Exif.Photo.DateTimeOriginal 2011:04:01 11:14:06" Img028.jpg
exiv2 -M"set Exif.Photo.DateTimeOriginal 2011:04:01 11:14:32" Img029.jpg
exiv2 -M"set Exif.Photo.DateTimeOriginal 2011:04:01 11:14:42" Img030.jpg
exiv2 -M"set Exif.Photo.DateTimeOriginal 2011:04:01 11:15:08" Img031.jpg
exiv2 -M"set Exif.Photo.DateTimeOriginal 2011:04:01 11:15:16" Img032.jpg
exiv2 -M"set Exif.Photo.DateTimeOriginal 2011:04:01 11:15:36" Img033.jpg
exiv2 -M"set Exif.Photo.DateTimeOriginal 2011:04:01 11:15:50" Img034.jpg
exiv2 -M"set Exif.Photo.DateTimeOriginal 2011:04:01 11:16:20" Img035.jpg
exiv2 -M"set Exif.Photo.DateTimeOriginal 2011:04:01 11:16:36" Img036.jpg
exiv2 -M"set Exif.Photo.DateTimeOriginal 2011:04:01 11:17:22" Img037.jpg
exiv2 -M"set Exif.Photo.DateTimeOriginal 2011:04:01 11:22:44" Img038.jpg

Bingo!

Leave a comment

Parsed with Markdown

  • Headings

    # Heading
    ## Subheading

  • Unordered list

    * First item
    * Second item

  • Ordered list

    1. First item
    2. Second item

  • Link

    [Text](URL)
  • Image

    ![Alt text](URL)

Login to leave a comment