darktable icon indicating copy to clipboard operation
darktable copied to clipboard

Sony ILCE 7m5

Open BSD-Prutser opened this issue 11 months ago • 31 comments

Hi I uploaded 2 raw images from my new Sony ice 7m5. One is uncompressed Raw other is compressed. I hope support could be added to rawspeed supported list. If you need more data (different camera settings etc) please send request with settings to use. Hope darkroom could add this sensor / camera.

Regards

Robert

BSD-Prutser avatar Dec 14 '25 11:12 BSD-Prutser

Thanks for the samples. But going by the manuaI I think we need many modes and combinations thereof: the new compressed HQ, L/M/S variants, APS-C crops...

Please upload a complete new set from a single shoot.

kmilos avatar Dec 14 '25 12:12 kmilos

I have to look how to set it up with all the options. Menu system is not familiar with me. Coming from Olympus OM-D1m2. I'll check how to set it up for the correct raw files needed.

BSD-Prutser avatar Dec 14 '25 12:12 BSD-Prutser

Btw, 7M5 users should be advised not to shoot in the new lossy "Compressed" or "Compressed (HQ)" modes (other than to provide samples), as it will probably take some time to support it. Only lossless is likely to get support for the time being.

kmilos avatar Dec 14 '25 20:12 kmilos

I received mine today so I may also be able to contribute soon if needed.

BSD-Prutser: I have to look how to set it up with all the options.

With the English menu, the crop can be set through "Camera (Red) (3rd icon from the top) -> 1. Image Quality/Rec -> APS-C S35 Shooting". "On" is "always APS-C", "Off" is "always Full-Frame", and "Auto" sets it depending on the lens.

By pressing the Trash icon with this setting selected, you can add it to your favourites (the star which is 1st from the top in the main menu) for a quicker access. Same goes for the "Image Quality Settings" sub-menu there, to access both settings quicker.

kmilos: we need many modes and combinations thereof: the new compressed HQ, L/M/S variants, APS-C crops...

Not sure what "L/M/S variants" means here though: I indeed see that the submissions for the 1m2 have Large/Medium/Small variants of "Lossless Compressed" RAWs but I don't see this option on the 7m5. The only mention I see in the manual is that "L" is for Full-Frame and "M" for APS-C, but we've already accounted for those two versions. Maybe the 33MPx sensor is not "high definition" enough to output three different crop sizes.

So as far as I understand and judging by the menu options I see, the goal would be to have for this model, with the same landscape:

  • Lossless Compressed RAW Full-Frame
  • Lossless Compressed RAW APS-C
  • Compressed (HQ) RAW Full-Frame
  • Compressed (HQ) RAW APS-C
  • Compressed RAW Full-Frame
  • Compressed RAW APS-C

The 7m5 also doesn't have uncompressed RAW like the 1m2 or even my previous 7m3: here everything is compressed one way or another. Interestingly, I tried those 3 formats (in full-frame) and under Linux/KDE the "Lossless Compressed" RAW gets read directly, I assume by libraw. Under Sony's latest Imaging Edge Desktop Edit, all three files are described as "ARW 6.0" but with different compressions, but as LibRaw only lists up to version 5.0 I guess it means that the Lossless Compressed 6.0 format is close enough to a previous one to get read directly, so that would be one format crossed from the list already. (EDIT: well it's read with an incorrect bigger resolution that adds black bars, but I think it's just an issue in Gwenview)

Ruzgfpegk avatar Dec 15 '25 21:12 Ruzgfpegk

Hi,

I won't be able to test daylight shots until this weekend. So If you have the camera before it and could shoot some. I'll try also this weekend to make this set of files so there is comparison possible?

Regards

Robert

On Mon, Dec 15, 2025 at 10:05 PM Ruzgfpegk @.***> wrote:

Ruzgfpegk left a comment (darktable-org/darktable#19917) https://github.com/darktable-org/darktable/issues/19917#issuecomment-3657598409

I received mine today so I may also be able to contribute soon if needed.

BSD-Prutser: I have to look how to set it up with all the options.

With the English menu, the crop can be set through "Camera (Red) (3rd icon from the top) -> 1. Image Quality/Rec -> APS-C S35 Shooting". "On" is "always APS-C", "Off" is "always Full-Frame", and "Auto" sets it depending on the lens.

By pressing the Trash icon with this setting selected, you can add it to your favourites (the star which is 1st from the top in the main menu) for a quicker access. Same goes for the "Image Quality Settings" sub-menu there, to access both settings quicker.

kmilos: we need many modes and combinations thereof: the new compressed HQ, L/M/S variants, APS-C crops...

Not sure what "L/M/S variants" means here though: I indeed see that the submissions for the 1m2 https://raw.pixls.us/data/SONY/ILCE-1M2/ have Large/Medium/Small variants of "Lossless Compressed" RAWs but I don't see this option on the 7m5. The only mention I see in the manual https://helpguide.sony.net/ilc/2540/v1/en/contents/251h_raw_file_type.html is that "L" is for Full-Frame and "M" for APS-C, but we've already accounted for those two versions. Maybe the 33MPx sensor is not "high definition" enough to output three different crop sizes.

So as far as I understand and judging by the menu options I see, the goal would be to have for this model, with the same landscape:

  • Lossless Compressed RAW Full-Frame
  • Lossless Compressed RAW APS-C
  • Compressed (HQ) RAW Full-Frame
  • Compressed (HQ) RAW APS-C
  • Compressed RAW Full-Frame
  • Compressed RAW APS-C

The 7m5 also doesn't have uncompressed RAW like the 1m2 or even my previous 7m3: here everything is compressed one way or another. Interestingly, I tried those 3 formats (in full-frame) and under Linux/KDE the "Lossless Compressed" RAW gets read directly, I assume by libraw. Under Sony's latest Imaging Edge Desktop Edit, all three files are described as "ARW 6.0" but with different compressions, but as LibRaw only lists up to version 5.0 https://github.com/LibRaw/LibRaw/blob/e549580dbf8e793d2c3e1b2f5e14e1aa23f27733/libraw/libraw_types.h#L774 I guess it means that the Lossless Compressed 6.0 format is close enough to a previous one to get read directly, so that would be one format crossed from the list already.

— Reply to this email directly, view it on GitHub https://github.com/darktable-org/darktable/issues/19917#issuecomment-3657598409, or unsubscribe https://github.com/notifications/unsubscribe-auth/A2P32EYQSQB22YSHKXZASF34B4PATAVCNFSM6AAAAACO7SURSKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZTMNJXGU4TQNBQHE . You are receiving this because you authored the thread.Message ID: @.***>

BSD-Prutser avatar Dec 16 '25 09:12 BSD-Prutser

@Ruzgfpegk Indeed, from the reference guide, it seems only Lossless, Compressed (HQ) (i.e. "new" lossy), and Compressed ("old" lossy presumably?) are possible, in FF (L) and APS-C (M) size. Then there are also aspect ratios - historically they don't affect the raw output size on Sonys, but it should be checked.

The previous generation of cameras did have a choice of L/M/S in lossless mode, so it is worth double checking as well (e.g. 7CM2 is also 33MPix and has those). It is possible they dropped them here with the bump to "ARW 6.0".

I tried those 3 formats (in full-frame) and under Linux/KDE the "Lossless Compressed" RAW gets read directly, I assume by libraw.

Yes, LibRaw will silently decode raws from unknown cameras if it understands the compression scheme (in this case lossless and "old" lossy should work), but it won't have the correct input color profile, it'll just grab a nearest match by name (7M4 in this case perhaps).

kmilos avatar Dec 16 '25 09:12 kmilos

P.S. If either of you could share just one sample of each mode in FF via some cloud sharing service (and full set later to raw.pixls.us of course), that would be a good place to start experimenting as well.

kmilos avatar Dec 16 '25 12:12 kmilos

I've done 24 shots : 3 RAW types (Lossless Compressed, Compressed (HQ), Compressed) * 4 crop ratios (3:2, 4:3, 16:9, 1:1) * 2 sizes (Full-Frame or APS-C), all of the same scene, all ISO 100 at F10. With this scene the two lossy modes have roughly the same size every time.

The Android "Creators' App" allows to change the RAW type and the crop ratio of the camera from its menu, so by using it as a remote the whole shoot didn't take much time.

I've uploaded the whole set to raw.pixls.us and on a public NextCloud share. I only added info to the RAW filenames, as the JPGs are there for reference only.

Ruzgfpegk avatar Dec 16 '25 13:12 Ruzgfpegk

@Ruzgfpegk Most excellent, thank you very much!

@LebedevRI I have confirmed the different aspect ratios files carry the same raw image size, so I guess one could keep only 6 samples on RPU? (Only Sony MakerNote crop metadata differs...)

P.S. Turns out "Compressed" is not the the same as "old" lossy, but I guess a lower quality setting of the new scheme. (No wonder LibRaw only opens lossless currently.)

kmilos avatar Dec 16 '25 13:12 kmilos

Please feel to test the linked PR on lossless raws. (Clear history or reset the raw b/w module if you see a black image for a previously failed import.) Note that the input color matrix is subject to change.

kmilos avatar Dec 16 '25 14:12 kmilos

@kmilos I confirm that by applying the changes of your commit (to /usr/share/darktable/rawspeed/cameras.xml on my system), the lossless compressed RAWs load without any error message in darktable 5.2.1 and all the modules I tried work as expected. Thanks for that!

Ruzgfpegk avatar Dec 16 '25 14:12 Ruzgfpegk

Hi @kmilos https://github.com/kmilos

I can also confirm that darktable (5.2.1 package ) can open the lossless compressed images without issues on freebsd 14.3. So great work thank you

Regards

Robert Blacquiere

On Tue, Dec 16, 2025 at 3:49 PM Ruzgfpegk @.***> wrote:

Ruzgfpegk left a comment (darktable-org/darktable#19917) https://github.com/darktable-org/darktable/issues/19917#issuecomment-3660935776

@kmilos https://github.com/kmilos I confirm that by applying the changes of your commit (to /usr/share/darktable/rawspeed/cameras.xml on my system), the lossless compressed images load without any error message in darktable 5.2.1 and all the modules I tried work as expected. Thanks for that!

— Reply to this email directly, view it on GitHub https://github.com/darktable-org/darktable/issues/19917#issuecomment-3660935776, or unsubscribe https://github.com/notifications/unsubscribe-auth/A2P32E37OOI3Y5RBQ2QYDJL4CALXJAVCNFSM6AAAAACO7SURSKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZTMNRQHEZTKNZXGY . You are receiving this because you authored the thread.Message ID: @.***>

BSD-Prutser avatar Dec 18 '25 14:12 BSD-Prutser

Hi @kmilos im on darktable 5.4.0, and it doesn't work for me. anything I should do?

zaydrana avatar Jan 08 '26 22:01 zaydrana

Hi Zaydrana,

This was not committed to Darktable 5.4. So you need to edit the cameras.xml linked in this thread. May be this will be committed in the next update? But that's for the developers to decide.

Regards

Robert

On Thu, Jan 8, 2026 at 11:34 PM zaydrana @.***> wrote:

zaydrana left a comment (darktable-org/darktable#19917) https://github.com/darktable-org/darktable/issues/19917#issuecomment-3726120099

Hi @kmilos https://github.com/kmilos im on darktable 5.4.0, and it doesn't work for me. anything I should do?

— Reply to this email directly, view it on GitHub https://github.com/darktable-org/darktable/issues/19917#issuecomment-3726120099, or unsubscribe https://github.com/notifications/unsubscribe-auth/A2P32E26Y7QQGNIKWUOOHD34F3LOLAVCNFSM6AAAAACO7SURSKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZTOMRWGEZDAMBZHE . You are receiving this because you authored the thread.Message ID: @.***>

BSD-Prutser avatar Jan 09 '26 08:01 BSD-Prutser

Thank you Robert, but I don't know what you mean by that and how to do that. Sorry!

If you could guide me, that would be very helpful!

zaydrana avatar Jan 09 '26 16:01 zaydrana

Hi zaydrana,

Depending on OS it is located in on FreeBSD in /usr/local/share/darktable/rawspeed/ on linux i'mr unsure. On mac it's located in /Applications/darktable.app/Contents/Resources/share/darktable/rawspeed.

There is a file cameras.xml make a copy for save keeping.

use editor and search for ILCE-7M5 camera block.

There you need to remove the place holder for the camera and replace it with this:

    <Camera make="SONY" model="ILCE-7M5">
            <ID make="Sony" model="ILCE-7M5">Sony ILCE-7M5</ID>
            <CFA width="2" height="2">
                    <Color x="0" y="0">RED</Color>
                    <Color x="1" y="0">GREEN</Color>
                    <Color x="0" y="1">GREEN</Color>
                    <Color x="1" y="1">BLUE</Color>
            </CFA>
            <Crop x="0" y="0" width="-8" height="0"/>
            <Sensor black="512" white="16383"/>
            <ColorMatrices>
                    <ColorMatrix planes="3">
                            <ColorMatrixRow plane="0">7460 -2365

-588 -5687 13442 2474 -624 1156 6584

Just make sure darktable is stopped and. then start darktable.

Robert

On Fri, Jan 9, 2026 at 5:51 PM zaydrana @.***> wrote:

zaydrana left a comment (darktable-org/darktable#19917)

Thank you Robert, but I don't know what you mean by that and how to do that. Sorry!

If you could guide me, that would be very helpful!

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>

BSD-Prutser avatar Jan 09 '26 21:01 BSD-Prutser

Hey Robert. Thank you so much! It's working now!

However, just one thing that really isn't much of a big deal.

Itt isn't able to display my settings for the shot, or at least it just says zero for everything. Like in the bottom of the interface in darktable, it says "1/inf" where it usually displays shutter speed, "f/0.0" where it usually displays aperture, "0.0 mm" where it usually displays focal length, and "ISO 0" where it usually displays ISO.

zaydrana avatar Jan 10 '26 00:01 zaydrana

Hi,

May be due to copy and paste and email lines "plane" are wrapped and it should be one line in the part of ColorMatrix I think that is happening with your cameras.xml the xml is very sensitive for this.

On Sat, Jan 10, 2026 at 1:22 AM zaydrana @.***> wrote:

zaydrana left a comment (darktable-org/darktable#19917) https://github.com/darktable-org/darktable/issues/19917#issuecomment-3731122990

Hey Robert. Thank you so much! It's so close to working.

I've updated the file, now when I open the image in darktable, it displays nothing, like my image is just black. And it says the following: 'Sony ILCE-7M5' color matrix not found!

My code is the same as yours though, and I don't know any languages, but if it's helpful, heres my code anyways: Sony ILCE-7M5 Sony ILCE-7M5 RED GREEN GREEN BLUE 7460 -2365 -588 -5687 13442 2474 -624 1156 6584

— Reply to this email directly, view it on GitHub https://github.com/darktable-org/darktable/issues/19917#issuecomment-3731122990, or unsubscribe https://github.com/notifications/unsubscribe-auth/A2P32EY3TW6TSWTW3MPNPEL4GBA4XAVCNFSM6AAAAACO7SURSKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZTOMZRGEZDEOJZGA . You are receiving this because you authored the thread.Message ID: @.***>

BSD-Prutser avatar Jan 10 '26 11:01 BSD-Prutser

Could I ask a kind 7M5 owner to run a quick test for me? I'd like some metadata from the following RAW+JPEG combinations:

Compressed Compressed + standard Compressed + fine Compressed + extra fine Compressed + light Compressed (HQ) Compressed (HQ) + standard Compressed (HQ) + fine Compressed (HQ) + extra fine Compressed (HQ) + light

and then run exiv2 -Pkvt <foo>.ARW | grep Quality2 and report output for each please.

kmilos avatar Jan 22 '26 11:01 kmilos

@kmilos Here you go, hope this helps.

Quality                       |  Output
------------------------------+-------------------------------------
Compressed                    |  Exif.Sony2.Quality2      4 0  (4 0)
Compressed + standard         |  Exif.Sony2.Quality2      4 1  (4 1)
Compressed + fine             |  Exif.Sony2.Quality2      4 2  (4 2)
Compressed + extra fine       |  Exif.Sony2.Quality2      4 3  (4 3)
Compressed + light            |  Exif.Sony2.Quality2      4 4  (4 4)
Compressed (HQ)               |  Exif.Sony2.Quality2      5 0  (5 0)
Compressed (HQ) + standard    |  Exif.Sony2.Quality2      5 1  (5 1)
Compressed (HQ) + fine        |  Exif.Sony2.Quality2      5 2  (5 2)
Compressed (HQ) + extra fine  |  Exif.Sony2.Quality2      5 3  (5 3)
Compressed (HQ) + light       |  Exif.Sony2.Quality2      5 4  (5 4)

darksinge avatar Jan 24 '26 19:01 darksinge