So, I'm mostly interested in seeing who has a clever solution to this problem. It's likely going to come down to split
and some comparison loop.
The problem: I am combining multiple fields of exif data to create a title for an image. The trouble is that this exif data ranges widely in content.
Nikon example:
exifData.Make = "NIKON CORPORATION"
exifData.Model = "NIKON D90"
Motorola phone example:
exifData.Make = "Motorola"
exifData.Model = "XT1032"
In the Motorola case, I'd simply use the combination of Make
and Model
.
However, in the Nikon case, there's duplication, so I'd like to ignore the Make
and give preference to the Model
in that case.