Mike Chaney's Tech Corner

Mike's Software => Qimage Ultimate => Topic started by: jdigital on December 28, 2023, 05:29:48 PM



Title: Canon .CR3 portrait images are not rotated (sideways)
Post by: jdigital on December 28, 2023, 05:29:48 PM
Canon RAW .CR3 images taken in portrait orientation show up as sideways thumbnails in Qimage Ultimate. I don't see this issue for my older .CR2 images, nor do I see this with other programs I use. I can use a rotation filter but it would be nice if Qimage handled this natively.
Thanks...


Title: Re: Canon .CR3 portrait images are not rotated (sideways)
Post by: admin on December 28, 2023, 07:30:29 PM
Qimage doesn't determine this: it is part of LibRaw.  Since the CR3 format is a relatively new format that is unsupported outside of Canon, LibRaw is reverse engineering the format as quickly as possible but not all camera models or CR3 variants are fully supported feature-wise.  I'm sure that eventually LibRaw will catch up and when it does, Qimage will automatically support those missing features.

Things like this will continue to happen as long as companies like Canon continue to arbitrarily change their formats while keeping specs on the format hidden/proprietary.

Regards,
Mike


Title: Re: Canon .CR3 portrait images are not rotated (sideways)
Post by: jdigital on December 30, 2023, 05:53:11 AM
I downloaded and tested with darktable, which claims to use libraw, and it displays the rotation as expected.  I wonder what they're doing differently?


Title: Re: Canon .CR3 portrait images are not rotated (sideways)
Post by: admin on December 30, 2023, 02:14:34 PM
All of us who use LibRaw have our own customizations, fixes, and workaround that we make to the original code whenever we see problems.  Post a sample CR3 and give a link to one where rotation isn't working.  It's possible there could be an easy fix for that parameter not showing.  There are also multiple functions in LibRaw for developing raws including thumbnail extraction, embedded JPEG extraction, file/open, parameter reading functions where you read only image headers, etc.  Sometimes with undocumented formats and reverse engineering, some of those functions work while others need a touchup so depending on what functions are used (and at what time), two programs can display different results.

Mike


Title: Re: Canon .CR3 portrait images are not rotated (sideways)
Post by: jdigital on December 30, 2023, 05:28:59 PM
Here are two images, the first one is portrait orientation:

(links removed...)

Thanks for looking into this!


Title: Re: Canon .CR3 portrait images are not rotated (sideways)
Post by: admin on January 02, 2024, 05:00:10 PM
Just had a chance to look at the CR3 thoroughly.  The version of LibRaw that I'm using reports EXIF_orientation as zero (not rotated) on the one that should be rotated.  Looks like I'm going to have to wait until the next LibRaw update which should fix it.

Mike