Summary: | Flickr uploader uploads with wrong date | ||
---|---|---|---|
Product: | [Applications] digikam | Reporter: | Henry de Valence <hdevalence> |
Component: | Plugin-WebService-Flickr | Assignee: | Digikam Developers <digikam-bugs-null> |
Status: | RESOLVED WORKSFORME | ||
Severity: | normal | CC: | caulier.gilles, shouryasgupta |
Priority: | NOR | ||
Version: | 5.6.0 | ||
Target Milestone: | --- | ||
Platform: | Ubuntu | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | 4.11.0 | |
Sentry Crash Report: | |||
Attachments: | Screenshot of Digikam error |
Description
Henry de Valence
2010-06-29 07:07:04 UTC
Ah! It seems I made a mistake. The wrong date is actually displayed in the Digikam window after all; I had mistaken the NEF for the PNG file. So this may be a UFRaw bug. I think it would still be nice for Digikam to use 'Date/Time Original' or 'Create Date' though. I cannot see any code that explicitly sets the date. I guess this is flickr's interpretation of the exif tags. Something that occurred to me is that the flickr uploader converts the PNG into a JPEG before it's uploaded. How is that done? is the metadata copied exactly, or might it be messing it up there? Where are the JPEG files that actually get uploaded put, so that I can test it myself to see what the date/time is on them? I can confirm that if I don't tell the Flickr Uploader to resize & convert to a JPEG, and instead just upload a JPEG produced in UFRAW, then the dates appear correctly in Flickr. can you upload such a photo for us to test? I think I may have found the problem. If I select an NEF file and open if with UFRaw, then the resulting jpg/png/tif file is apparently not opened correctly in Digikam. It shows up in the "View" mode as having its date/time as when the file was created. Then, if I click on the stars to assign it a rating, it saves the rating AND the wrong date to the image file. If, however, I do "Reread metadata from Image", it sees the correct date, so that when I give it a rating, it does not overwrite the exif data with bad values. Here is a diff of the exif data from the original image immediately after it was produced by UFRaw, and after I assigned it a rating in Digikam. As you can see, setting a rating overwrites the correct date/time in the Exif data. --- exif_1 2010-08-11 15:41:05.140271246 -0400 +++ exif_2 2010-08-11 15:41:46.070271775 -0400 @@ -12,15 +12,13 @@ Compression : Deflate/Inflate Filter : Adaptive Interlace : Noninterlaced -Source : NIKOND70s -Exif Byte Order : Big-endian (Motorola, MM) -Processing Software : UFRaw 0.16 +Exif Byte Order : Little-endian (Intel, II) +Processing Software : digiKam-1.2.0 Subfile Type : Reduced-resolution image Make : NIKON CORPORATION Camera Model Name : NIKON D70s Orientation : Horizontal (normal) -Software : Ver.1.00 -Modify Date : 2010:07:03 17:17:04 +Modify Date : 2010:08:11 14:21:21 Reference Black White : 0 255 0 255 0 255 Exposure Time : 1/500 F Number : 8.0 @@ -94,7 +92,6 @@ Flash Group B Exposure Comp : 0 Image Optimization : Normal Vari Program : -User Comment : Sub Sec Time : 00 Sub Sec Time Original : 00 Sub Sec Time Digitized : 00 @@ -115,8 +112,22 @@ Subject Distance Range : Unknown Date/Time Original : 2010:07:03 17:17:04 TIFF-EP Standard ID : 1 0 0 0 +Current IPTC Digest : ac43f309c96a85b92d70c15518700273 +Originating Program : digiKam +Program Version : 1.2.0 +Time Created : 14:21:21+00:00 +XMP Toolkit : XMP Core 4.4.0-Exiv2 +Date/Time Modified : 2010:08:11 14:21:21 +Creator Tool : digiKam-1.2.0 +Metadata Date : 2010:08:11 14:21:21 +Rating : 3 +Date Created : 2010:08:11 14:21:21 +Rating Percent : 50 +Software : UFRaw +Source : NIKOND70s Aperture : 8.0 Blue Balance : 1.410156 +Date/Time Created : 2010:08:11 14:21:21+00:00 Image Size : 3039x2014 Lens ID : AF-S DX Zoom-Nikkor 18-70mm f/3.5-4.5G IF-ED Lens : 18-70mm f/3.5-4.5 G @@ -125,7 +136,7 @@ Shutter Speed : 1/500 Create Date : 2010:07:03 17:17:04.00 Date/Time Original : 2010:07:03 17:17:04.00 -Modify Date : 2010:07:03 17:17:04.00 +Modify Date : 2010:08:11 14:21:21.00 Circle Of Confusion : 0.020 mm Depth Of Field : inf (3.89 m - inf) Field Of View : 38.0 deg (5.47 m) The Modify Date tags are patched, because it's the date where something have been touched. If flickr use this tag to identify the date of camera shot, it's definitively wrong. The right tags to use by Flickr is Date/Time Original Gilles Caulier First of all, it's entirely unexpected behaviour that setting a rating would change any metadata not related to the rating. It's not only setting the Modify Date -- even though only the metadata, NOT the image, is being changed -- but also the Date/Time Created, Date Created, and Time Created tags. Second, even if Flickr is using the correct tag, it's not going to be of any help to them, since that tag gets overwritten by Digikam at some point. See these two images: http://www.flickr.com/photos/8702301@N06/4899566152/meta/in/photostream http://www.flickr.com/photos/8702301@N06/4899573518/meta/in/photostream Created attachment 50637 [details]
Screenshot of Digikam error
Also, in addition to changing when the image was created based on a rating change as described above, Digikam isn't able to properly read the data from the images in the first place.
In the attached screenshot, #1 is the original NEF file, and #2 is a JPG I created with UFRaw.
Digikam is displaying the wrong date, even though the only reference to that date in the Exif info is "File Modification Date/Time : 2010:08:16 18:10:15-04:00":
exiftool DSC_3609.jpg | grep -e Date -e Time -i
File Modification Date/Time : 2010:08:16 18:10:15-04:00
Modify Date : 2010:08:15 13:00:50
Exposure Time : 1/160
Create Date : 2010:08:15 13:00:50
Sub Sec Time : 10
Sub Sec Time Original : 10
Sub Sec Time Digitized : 10
Date/Time Original : 2010:08:15 13:00:50
Create Date : 2010:08:15 13:00:50.10
Date/Time Original : 2010:08:15 13:00:50.10
Modify Date : 2010:08:15 13:00:50.10
Harry, This file still valid using kipi-plugins 2.4 ? Gilles Caulier This is not valid anymore. The image gets uploaded with proper "Date/Time Created". Also, digiKam does not change the "Date/Time Created" metadata when a rating is given to an image. |