[Bug 279403] New: Saving Geotagging info fails

classic Classic list List threaded Threaded
13 messages Options
Reply | Threaded
Open this post in threaded view
|

[Bug 279403] New: Saving Geotagging info fails

bogdan
https://bugs.kde.org/show_bug.cgi?id=279403

           Summary: Saving Geotagging info fails
           Product: digikam
           Version: 0.6.2
          Platform: openSUSE RPMs
        OS/Version: Linux
            Status: UNCONFIRMED
          Severity: normal
          Priority: NOR
         Component: Geolocation
        AssignedTo: [hidden email]
        ReportedBy: [hidden email]


Version:           0.6.2 (using KDE 4.6.5)
OS:                Linux

The geotagging process runs well and works, but applying those changes to the
files does not work.

I get
  Failed to save some information:

path_to_file : Unable the save changes to file

Reproducible: Always

Steps to Reproduce:
1) getotag an image
2) press Apply button

Actual Results:  
I get
  Failed to save some information:

path_to_file : Unable the save changes to file

Expected Results:  
Success applying

OS: Linux (x86_64) release 3.0.0-39-desktop
Compiler: gcc

--
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
_______________________________________________
Digikam-devel mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-devel
Reply | Threaded
Open this post in threaded view
|

[Bug 279403] Saving Geotagging info fails

Michael G. Hansen
https://bugs.kde.org/show_bug.cgi?id=279403


Michael G. Hansen <[hidden email]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[hidden email]
          Component|Geolocation                 |GPSSync
            Version|0.6.2                       |2.0.0
            Product|digikam                     |kipiplugins




--
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
_______________________________________________
Digikam-devel mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-devel
Reply | Threaded
Open this post in threaded view
|

[Bug 279403] Saving Geotagging info fails

bogdan
In reply to this post by bogdan
https://bugs.kde.org/show_bug.cgi?id=279403





--- Comment #1 from  <bogdan hlevca com>  2011-08-04 19:49:57 ---
I am trying to geotag Sony ARW, it appears that these files cannot store
location data, but I man 100% sure

--
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
_______________________________________________
Digikam-devel mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-devel
Reply | Threaded
Open this post in threaded view
|

[Bug 279403] Saving Geotagging info fails

Gilles Caulier-4
In reply to this post by bogdan
https://bugs.kde.org/show_bug.cgi?id=279403


Gilles Caulier <[hidden email]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[hidden email]




--- Comment #2 from Gilles Caulier <caulier gilles gmail com>  2011-12-21 10:06:13 ---
Bogdan,

About ARW file, this is read only RAW file. Exiv2 library can touch some
TIFF/EP RAW file as NEF, but not ARW.

Can you reproduce the problem using kipi-plugins 2.4 ?

Gilles Caulier

--
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
_______________________________________________
Digikam-devel mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-devel
Reply | Threaded
Open this post in threaded view
|

[kipiplugins] [Bug 279403] Saving Geotagging info fails

Samuel Gilbert
In reply to this post by bogdan
https://bugs.kde.org/show_bug.cgi?id=279403

Samuel Gilbert <[hidden email]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |samuel.gilbert@usherbrooke.
                   |                            |ca

--- Comment #3 from Samuel Gilbert <[hidden email]> ---
I get exactly the same behaviour with JPEG files taken with a Canon Rebel XT.

I tried to launch Digikam from a terminal to get additional output, but I see
nothing relevant.

When the process fails, it creates, for each affected file, a 2 byte file named
the same as the source but with the Digikam PID appended at the end.  For
example :

File to be geo-referenced : 2012-12-19T10:43:49_Val.JPG
2 byte file created in the same folder : 2012-12-19T10:43:49_Val.JPG695

This isn't an issue with the file permissions.  Creating a copy of the file
with another name and trying to geo-reference it yields the same behaviour.

--
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Digikam-devel mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-devel
Reply | Threaded
Open this post in threaded view
|

[kipiplugins] [Bug 279403] Saving Geotagging info fails

Samuel Gilbert
In reply to this post by bogdan
https://bugs.kde.org/show_bug.cgi?id=279403

--- Comment #4 from Samuel Gilbert <[hidden email]> ---
I wanted to attach a sample file for which the geo-tagging process fails, but
it's to big (4.6MB).

I put the file on my personal Web server (self-signed SSL certificate) :
https://stonewatch.homelinux.org/geo-tagging_fails.jpg

--
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Digikam-devel mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-devel
Reply | Threaded
Open this post in threaded view
|

[kipiplugins] [Bug 279403] Saving Geotagging info fails

Samuel Gilbert
In reply to this post by bogdan
https://bugs.kde.org/show_bug.cgi?id=279403

--- Comment #5 from Samuel Gilbert <[hidden email]> ---
Created attachment 77275
  --> https://bugs.kde.org/attachment.cgi?id=77275&action=edit
Problem image sample in digikam

I noticed that all the images for which I encountered this problem show up with
theses messed-up properties in digikam.

--
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Digikam-devel mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-devel
Reply | Threaded
Open this post in threaded view
|

[kipiplugins] [Bug 279403] Saving Geotagging info fails

Samuel Gilbert
In reply to this post by bogdan
https://bugs.kde.org/show_bug.cgi?id=279403

--- Comment #6 from Samuel Gilbert <[hidden email]> ---
While trying to understand and solve this problem, I tried to find what was
special with the files for which I'm encountering the issue.  This is what I
get with exiv2 :

$ exiv2 pr geo-tagging_fails.jpg
Warning: Directory (Last IFD item), entry 0x0001 has unknown Exif (TIFF) type
0; setting type size 1.
Warning: Directory (Last IFD item), entry 0x0001 has unknown Exif (TIFF) type
0; setting type size 1.
Warning: Directory (Last IFD item), entry 0x0001 has unknown Exif (TIFF) type
0; setting type size 1.
Error: Directory (Last IFD item) with 10825 entries considered invalid; not
read.
File name       : geo-tagging_fails.jpg
File size       : 4810817 Bytes
MIME type       : image/jpeg
Image size      : 3456 x 2304
Camera make     : Canon
Camera model    : Canon EOS DIGITAL REBEL XT
Image timestamp : 2012:12:19 10:43:49
Image number    :
Exposure time   : 1/4000 s
Aperture        : F11
Exposure bias   : 0 EV
Flash           : No, compulsory
Flash bias      : 0 EV
Focal length    : 31.0 mm
Subject distance: 0
ISO speed       : 1600
Exposure mode   : Not defined
Metering mode   : Partial
Macro mode      : Off
Image quality   : Fine
Exif Resolution : 3456 x 2304
White balance   : Auto
Thumbnail       : image/jpeg, 7162 Bytes
Copyright       :
Exif comment    :
$


Since digikam uses libkexiv2, could this be causing the problem?

I don't really understand the JPEG internal structure, but I will try to find
if I can remove or fix what makes exiv2 unhappy with exiftool.

--
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Digikam-devel mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-devel
Reply | Threaded
Open this post in threaded view
|

[kipiplugins] [Bug 279403] Saving Geotagging info fails

Samuel Gilbert
In reply to this post by bogdan
https://bugs.kde.org/show_bug.cgi?id=279403

--- Comment #7 from Samuel Gilbert <[hidden email]> ---
All the pictures I have that are suffering from this problem have been imported
from the Camera using iPhoto (by a friend).  Files copied directly to Linux
from the CF using a USB reader behave normally.

--
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Digikam-devel mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-devel
Reply | Threaded
Open this post in threaded view
|

[kipiplugins] [Bug 279403] Saving Geotagging info fails

Samuel Gilbert
In reply to this post by bogdan
https://bugs.kde.org/show_bug.cgi?id=279403

--- Comment #8 from Samuel Gilbert <[hidden email]> ---
I managed to find a work-around for the problem :

find -type f -iname "*.jpg" -exec exiftool -all= -tagsfromfile @ -all:all
-unsafe {} \;

This allowed me to work with the files within digikam.

--
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Digikam-devel mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-devel
Reply | Threaded
Open this post in threaded view
|

[kipiplugins] [Bug 279403] Saving Geotagging info fails

Marcel Wiesweg
In reply to this post by bogdan
https://bugs.kde.org/show_bug.cgi?id=279403

--- Comment #9 from Marcel Wiesweg <[hidden email]> ---
I can confirm that exiv2 refuses to write to the sample image that you provide.
Error messages:
Warning: Directory (Last IFD item), entry 0x0001 has unknown Exif (TIFF) type
0; setting type size 1.
Warning: Directory (Last IFD item), entry 0x0001 has unknown Exif (TIFF) type
0; setting type size 1.
Warning: Directory (Last IFD item), entry 0x0001 has unknown Exif (TIFF) type
0; setting type size 1.
Error: Directory (Last IFD item) with 10825 entries considered invalid; not
read.
Warning: Directory (Last IFD item), entry 0x0001 has unknown Exif (TIFF) type
0; setting type size 1.
Warning: Directory (Last IFD item), entry 0x0001 has unknown Exif (TIFF) type
0; setting type size 1.
Warning: Directory (Last IFD item), entry 0x0001 has unknown Exif (TIFF) type
0; setting type size 1.
Error: Directory (Last IFD item) with 10825 entries considered invalid; not
read.
Exiv2 exception in modify action for file /media/fotos/Digikam Sample/TIFF/Test
# Album äöüß éç/bug-279403-geo-tagging_fails.jpg:
Invalid ifdId 101

Reading metadata works flawlessly here, I see a lot of Exif information and
makernote.

I suspect some unknown invalid entries / an invalid structure which make exiv2
bail out when write is attempted. You can open a bug report with exiv2
providing the sample file and the error messages (which can be produced by the
exiv2 command line tool already with
exiv2 -c "text" sampefile.jpg)

--
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Digikam-devel mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-devel
Reply | Threaded
Open this post in threaded view
|

[kipiplugins] [Bug 279403] Saving Geotagging info fails

Marcel Wiesweg
In reply to this post by bogdan
https://bugs.kde.org/show_bug.cgi?id=279403

Marcel Wiesweg <[hidden email]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|---                         |UPSTREAM

--- Comment #10 from Marcel Wiesweg <[hidden email]> ---
It's either a bug in exiv2 or a broken/non-standard file where the behavior
(refuse to write) is safe.

--
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Digikam-devel mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-devel
Reply | Threaded
Open this post in threaded view
|

[digikam] [Bug 279403] Saving Geotagging info fails

Gilles Caulier-4
In reply to this post by bogdan
https://bugs.kde.org/show_bug.cgi?id=279403

Gilles Caulier <[hidden email]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Version|2.0.0                       |unspecified
            Product|kipiplugins                 |digikam
          Component|Geolocator                  |Geolocation Editor

--
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Digikam-devel mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-devel