Yet Another Cycling Forum

Random Musings => Gallery => Phototalk => Topic started by: Feanor on 17 March, 2021, 06:05:13 pm

Title: Exif editing software
Post by: Feanor on 17 March, 2021, 06:05:13 pm
Can anyone recommend a tool for adding and editing exif data to pictures?
Specifically, location data.

I'm looking for a small single-purpose tool; not a photo editing suite!

The use-scenarios are:

-Sometimes, I get sent pictures from an event I've been on, using a messaging service which strips the exif tags.  So they don't show up at the correct location on maps like Strava etc. So in this case, I'd like to add new exif tags.

-Sometimes, my phone will not have acquired GPS with any accuracy if I take a photo very soon after waking it up. So the pictures show up way off from their true location. In this case, I'd like to edit existing exif tags.
Title: Re: Exif editing software
Post by: Jaded on 17 March, 2021, 06:07:46 pm
Which OS?
Title: Re: Exif editing software
Post by: andyoxon on 17 March, 2021, 06:20:10 pm
Maybe too big, but free.  GNU Image Manipulation Program (GIMP) enables EXIF editing.  https://www.gimp.org/
Title: Re: Exif editing software
Post by: Pingu on 17 March, 2021, 06:29:34 pm
I've done that using Flickr. It'd be a bit of a faff uploading the image to Flickr, changing the EXIF, downloading the updated image then exporting it to Strava, thobut.
Title: Re: Exif editing software
Post by: Feanor on 17 March, 2021, 06:33:17 pm
Thx all.

OS = Win10 64bit

I've used the GIMP before, but I don't currently have it installed. I'll go take a look.

I'd not considered web services, that's an interesting option but yes a bit of a faff.  I wonder if it will allow the addition of tags which do not already exist, or just the ability to edit tags which are already there.  Need to go look.
Title: Re: Exif editing software
Post by: Feanor on 17 March, 2021, 06:46:33 pm
Yes, the Metadata editor in GIMP seems to do what I need, thanks.

It is a bit more heavyweight that I was looking for, and like most photo editing software, looks to have a learning curve as steep as the Lecht.
But the bit I want is straightforward!
Title: Re: Exif editing software
Post by: fuaran on 17 March, 2021, 07:07:35 pm
For location data, GeoSetter is good. https://geosetter.de
Can sync with a GPS track, or set locations by clicking on the map.
Does let you edit a variety of other tags, as well as locations.
Title: Re: Exif editing software
Post by: Feanor on 17 March, 2021, 07:43:27 pm
Ooh, that geosetter thing is exactly what I was looking for!
Thx.
Title: Re: Exif editing software
Post by: Davef on 18 March, 2021, 08:11:34 am
You could write your own!

Here’s mine for adding comments meta tags

void jpeg_addcomment(const char *path, const char *comment)
{
   CFile f;

   f.Open(path, CFile::modeWrite);

   f.Seek(-2, CFile::end);

   int len = strlen(comment)+3;

   unsigned char buf[4];
   buf[0] = 0xff;
   buf[1] = 0xfe;
   buf[2] = len/256;
   buf[3] = len%256;

   f.Write(buf, 4);
   f.Write(comment, strlen(comment)+1);

   // EOI
   buf[0] = 0xff;
   buf[1] = 0xd9;
   f.Write(buf, 2);

}
Title: Re: Exif editing software
Post by: Feanor on 18 March, 2021, 08:15:33 am
So Ive managed to add gps tags, and set the myriad of date/time stamps to be consistent with the tracklog and location, but Strava still wont plonk it on the map.

It just remains as if it were untagged.

Im missing some magic sauce here.
Title: Re: Exif editing software
Post by: Lightning Phil on 18 March, 2021, 08:19:09 am
Garmin Basecamp can batch geotag jpg photos provided you have a matching gps track and the photo time stamps are good.
Title: Re: Exif editing software
Post by: salar55 on 18 March, 2021, 10:05:33 am
Why bother, you know where the pic was taken. Do you want everyone to stop at the same place if they upload the run. Met someone on the Badger bikepacking route going north as we went south. Asked about foods stops and he said don't know, was just following the breadcrumb map on his garmin.
Title: Re: Exif editing software
Post by: fuaran on 18 March, 2021, 10:31:22 am
So Ive managed to add gps tags, and set the myriad of date/time stamps to be consistent with the tracklog and location, but Strava still wont plonk it on the map.

It just remains as if it were untagged.

Im missing some magic sauce here.
Strava will only put photos on the map if you upload them through the app. Doesn't work if you upload it through the website.
Title: Re: Exif editing software
Post by: Ham on 18 March, 2021, 11:48:10 am
I've used geosetter, too. Haven't done this for a couple of years, but this might help.

I had strava synch with Garmin, upload to Garmin and the synched Strava displays as expected, eg https://www.strava.com/activities/961520669
Title: Re: Exif editing software
Post by: Feanor on 18 March, 2021, 08:08:30 pm
So Ive managed to add gps tags, and set the myriad of date/time stamps to be consistent with the tracklog and location, but Strava still wont plonk it on the map.

It just remains as if it were untagged.

Im missing some magic sauce here.
Strava will only put photos on the map if you upload them through the app. Doesn't work if you upload it through the website.

Success! That was indeed the magic sauce.
Same image copied to the phone and uploaded via the app worked just fine.

Shame they don't seem to mention that anywhere!
Thx.

It was just for a silly joak photo, but the technical challenge was bugging me.
https://www.strava.com/activities/4945268890


Title: Exif editing software
Post by: Davef on 18 March, 2021, 09:35:14 pm
So Ive managed to add gps tags, and set the myriad of date/time stamps to be consistent with the tracklog and location, but Strava still wont plonk it on the map.

It just remains as if it were untagged.

Im missing some magic sauce here.
Strava will only put photos on the map if you upload them through the app. Doesn't work if you upload it through the website.

Success! That was indeed the magic sauce.
Same image copied to the phone and uploaded via the app worked just fine.

Shame they don't seem to mention that anywhere!
Thx.

It was just for a silly joak photo, but the technical challenge was bugging me.
https://www.strava.com/activities/4945268890
I wonder if it is a difference at the receiving end or the sending. I believe for example apple devices strip metadata from JPEG’s when you attach them to emails.

I see from strava you went past the house of at least one relative. I ran in the hill race at the last Lonach gathering.
Title: Re: Exif editing software
Post by: Pingu on 18 March, 2021, 09:50:09 pm
Garmin Basecamp can batch geotag jpg photos provided you have a matching gps track and the photo time stamps are good.

Ta (although it doesn't seem to tag RAW files)  :thumbsup: