I have duplicates of what should be identical photos in my PhotoStructure library (/ps/library
). The photos were imported to my computer via two different programs (Digikam and Rapid Photo Downloader) into two different directories, each of which is mounted into PhotoStructure via my Docker Compose settings.
They have the exact same filename except the extension on one has an uppercase .JPG
while the other has a lower-case .jpg
. Other than that, the photos should be identical.
Running photostructure info
to compare the two yields the following:
{
message: 'These files are similar',
similarImages: true,
meanHamm: 1,
labModesCorr: 1,
a: {
'$ctor': 'models.AssetFile',
aperture: 2,
cameraId: 'SerialNumber:12A00336',
capturedAtLocal: 2021071016504700,
capturedAtPrecisionMs: 0,
capturedAtSrc: 'tags:DateTimeOriginal',
fileSize: 14288033,
focalLength: '23.0 mm',
height: 4160,
iso: 160,
make: 'Fujifilm',
meanHash: 'PhofHh4eDgY9Pz0jI6TgIn9DAhweHx8P',
mimetype: 'image/jpeg',
mode0: 658,
mode1: 1097,
mode2: 662,
mode3: 2747,
mode4: 2751,
mode5: 2745,
mode6: 2749,
model: 'X100V',
mountpoint: '/ps/library',
mtime: 1625950248000,
rotation: 0,
sha: 'yUNWECck6Nv/w3HR3q9tSvHq+3BNVphe',
shutterSpeed: '1/1300',
uri: 'pslib:/2021/2021-07-10/DSCF0156.jpg',
version: 11,
width: 6240
},
b: {
'$ctor': 'models.AssetFile',
aperture: 2,
cameraId: 'SerialNumber:12A00336',
capturedAtLocal: 2021071016504700,
capturedAtPrecisionMs: 0,
capturedAtSrc: 'tags:DateTimeOriginal',
fileSize: 14278209,
focalLength: '23.0 mm',
height: 4160,
iso: 160,
make: 'Fujifilm',
meanHash: 'PhofHh4eDgY9Pz0jI6TgIn9DAhweHx8P',
mimetype: 'image/jpeg',
mode0: 658,
mode1: 1097,
mode2: 662,
mode3: 2747,
mode4: 2751,
mode5: 2745,
mode6: 2749,
model: 'X100V',
mountpoint: '/ps/library',
mtime: 1626293114000,
rotation: 0,
sha: 'U0jC4Mqg1kL/d43sAOoFHZxw1AyZrRon',
shutterSpeed: '1/1300',
uri: 'pslib:/2021/2021-07-10/DSCF0156.JPG',
version: 11,
width: 6240
}
}
I see that they have a slightly different filesize and sha
hash (though the mean hash remains the same). I have no idea how this would be possible given they were imported from the same memory card.
Environment
PhotoStructure v0.9.1 via Docker Compose running on an Alpine Linux VM.