Follow-up: GEDCOM 7 export — photo rotation not exported, non-standard FORM values

Collapse
X
Collapse
 
  • Time
  • Show
Clear All
new posts
  • reggoboy
    Member
    • Jan 2008
    • 106

    #1

    Follow-up: GEDCOM 7 export — photo rotation not exported, non-standard FORM values

    Hi again,

    Two more GEDCOM 7 export issues from Reunion 14.0, following up on my earlier report about CROP coordinates and media records.

    3. Rotation set in Reunion isn't exported

    If a photo is rotated inside Reunion, Reunion shows it upright, but the export gives no indication of the rotation. The image file is exported unchanged (still sideways), and the CROP and _SIZE are in the file's unrotated coordinates. Any other program shows the photo sideways.

    Example: ellie_kit.jpg. The file itself is 360 x 270 with the subject lying sideways and no EXIF orientation tag. Reunion displays it upright. The export says:
    Code:
    2 _SIZE 360.000000 270.000000
    2 CROP
    3 TOP 73
    3 LEFT 9
    3 HEIGHT 173
    3 WIDTH 191
    GEDCOM 7 has no rotation tag, so the only way to carry this over is for the export to write a rotated copy of the image and give _SIZE and CROP in that rotated orientation. Exporting to a .gdz, where Reunion is already copying the files, seems like a natural place to do that.

    4. FORM values aren't standard media types

    GEDCOM 7 says FORM must be a registered media type. Reunion writes image/jpg (should be image/jpeg), image/tif (should be image/tiff), and image/img for a HEIC file (should be image/heic). TNG, where I'm importing to at the moment, happened to ignore these, but stricter importers may not.

    Thanks again,

    Dave
    Dave Kitabjian
  • DrJJWMac
    Member
    • Dec 2015
    • 67

    #2
    WRT 3), how does an app such as iPhotos handle this situation? Does it rotate the raw image before export, or does it export the raw image with an EXIF rotation tag?

    Otherwise, I'd rather demand that a user must rotate an image at the OS level and/or with dedicated photo-editing tools than to have Reunion rotate an image before exporting. Potential security/safety failures are one concern. Potentially overburdening Reunion with additional toolsets for image editing is another.

    WRT 4), it seems Reunion is using the three-letter file extension rather than the EXIF standard (four-letter) tag. Yes, certainly this mistake is one to fix.

    Comment

    • reggoboy
      Member
      • Jan 2008
      • 106

      #3
      Originally posted by DrJJWMac View Post
      WRT 3), how does an app such as iPhotos handle this situation? Does it rotate the raw image before export, or does it export the raw image with an EXIF rotation tag?

      Otherwise, I'd rather demand that a user must rotate an image at the OS level and/or with dedicated photo-editing tools than to have Reunion rotate an image before exporting. Potential security/safety failures are one concern. Potentially overburdening Reunion with additional toolsets for image editing is another.
      Thanks for the reply.

      I don’t know how Photos handles this nor do I have a strong opinion about how Reunion should handle it. But Reunion definitely has a bug to fix here because the currently exported data is not consistent. As I mentioned above, the CROP and SIZE data are rotation-sensitive. So to support that data, and since GEDCOM has no rotation tag, Reunion has no choice but to rotate the media on export. The alternative is data corruption, which is what I’m experiencing.

      Thankfully Claude is cleaning up after Reunion and fixing this and other issues. And I’m trying to give back to the community by reporting the hours of research and fixes I’ve put into this so other Reunion users don’t have to go through the pain I’m going through. Whether anyone acts on it or not is not something I have any control over.
      Last edited by reggoboy; Today, 09:30 PM.
      Dave Kitabjian

      Comment

      • reggoboy
        Member
        • Jan 2008
        • 106

        #4
        There is one other alternative which is Reunion at least reporting to the users what media need rotating to not end up with a corrupt import. But currently Reunion is silently leaving users with a mess.
        Dave Kitabjian

        Comment

        Working...