How to ADD EXIF information to a JPEG photo

Discussion in 'Digital Cameras' started by James Grady, Jan 21, 2014.

  1. James Grady

    James Grady Guest

    I can strip EXIF data from a JPEG with jhead on Linux:
    $ jhead -purejpg photo.jpg

    But how can I ADD EXIF information to a JPEG on the
    Linux (Ubuntu) command line?

    For example, let's say I have photo1.jpg with EXIF data
    that I want to also transfer to photo2.jpg.

    Is there a Linux command to copy EXIF data from photo1
    to photo2?

    Something like:
    $ copy-exif photo1.jpg photo2.jpg
     
    James Grady, Jan 21, 2014
    #1
    1. Advertisements

  2. James Grady

    sid Guest

    exiftool

    http://www.sno.phy.queensu.ca/~phil/exiftool/
     
    sid, Jan 21, 2014
    #2
    1. Advertisements

  3. I believe you can use Image::ExifTool in Perl. I have only used it to
    *read* EXIF data. I created a Perl script to dump camera media cards and
    rename images to encode camera and date taken since most camera use
    limited 8.3 file names. Since thise is a standalone frontend
    <https://metacpan.org/pod/exiftool> which purports to write it you could
    use that or write your own.
     
    Jonathan N. Little, Jan 21, 2014
    #3
  4. James Grady

    James Grady Guest

    Thanks for that pointer.

    I installed exiftool:
    $ sudo apt-get install exiftool

    Googling, I found this syntax, which seems to do the trick!
    $ /usr/bin/exiftool -all= -tagsfromfile src.jpg -exif:all dst.jpg

    I just realized I need to change just the date, so, I'll
    see if exiftool can make the EXIF date the same as the
    file creation date.
     
    James Grady, Jan 21, 2014
    #4
  5. James Grady

    James Grady Guest

    James Grady, Jan 21, 2014
    #5
  6. op 21-01-14 21:05 schreef James Grady:
    exiv2 is in the repo's.
     
    Dirk T. Verbeek, Jan 22, 2014
    #6
  7. James Grady

    Dave Guest

    Dave, Jan 22, 2014
    #7
  8. James Grady

    croy Guest

    Have you looked into the EXIF workings of Irfanview? I'm
    not sure that I understand your need, but Irfanview has been
    a favorite (and trusted) tool of image-mongers for many
    years. You might even find the batch features appealing.
     
    croy, Jan 23, 2014
    #8
  9. James Grady

    Guest Guest

    irfanview is a windows app.

    he asked about using the command line in linux.
     
    Guest, Jan 23, 2014
    #9
  10. James Grady

    croy Guest

    Ugh--sorry. Back under my rock.

    croy
     
    croy, Jan 25, 2014
    #10
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.