immich icon indicating copy to clipboard operation
immich copied to clipboard

[BUG] Sony RAW (.ARW) unsupported

Open uhthomas opened this issue 1 year ago • 4 comments

The bug

I found https://github.com/immich-app/immich/issues/1109, but do not believe the resolution is fair. The Sony RAW format is very popular and is a major blocker for adoption.

The linked libvips issue suggests there is support for the file format, but magickload must be used instead.

The OS that Immich Server is running on

N/A

Version of Immich Server

v1.52.1

Version of Immich Mobile App

N/A

Platform with the issue

  • [X] Server
  • [ ] Web
  • [ ] Mobile

Your docker-compose.yml content

N/A

Your .env content

N/A

Reproduction steps

N/A

Additional information

N/A

uhthomas avatar Apr 03 '23 11:04 uhthomas

Could I have an example file to test with?

samip5 avatar Apr 04 '23 06:04 samip5

Here is a link to an example JPG and RAW file: https://photos.app.goo.gl/fxjPFHKZ274LR6c17

andrewgdunn avatar Apr 04 '23 14:04 andrewgdunn

Here is a link to an example JPG and RAW file: https://photos.app.goo.gl/fxjPFHKZ274LR6c17

Unfortunately, Google Photos will not let me download the .ARW file. Those both come downloaded as JPEG.

samip5 avatar Apr 05 '23 10:04 samip5

@samip5 Please see this ARW image: https://github.com/uhthomas/immich2156/blob/main/_DSC2642.ARW (direct download link: https://github.com/uhthomas/immich2156/raw/main/_DSC2642.ARW).

uhthomas avatar Apr 05 '23 12:04 uhthomas

So I've been looking into this and I think it should actually be a really small change, though I did come across a major caveat. Image Magick on Alpine is compiled for ufraw, which is not a valid package on Alpine. The base image may need to use debian instead, at least until the upstream issue is fixed.

See https://gitlab.alpinelinux.org/alpine/aports/-/issues/14957.

uhthomas avatar May 24 '23 21:05 uhthomas

Just FYI - On my backlog is to finish #2198, which is trying to integrate darktable-cli which has general support for many different raw formats.

jrasm91 avatar May 24 '23 21:05 jrasm91

Just FYI - On my backlog is to finish #2198, which is trying to integrate darktable-cli which has general support for many different raw formats.

I wouldn't worry about it. It looks like the alpine authors have already recompiled imagemagick with libraw support. The change for Immich is then just including that package. I think this is preferable to relying on multiple cli tools and keeps the code cleaner. The change should also be less risky.

uhthomas avatar May 24 '23 21:05 uhthomas

What does this imply? Will this change add general support for RAW files? If so, I agree that would be preferable.

jrasm91 avatar May 24 '23 21:05 jrasm91

I believe it does, yes. It should support: https://www.libraw.org/supported-cameras.

uhthomas avatar May 24 '23 21:05 uhthomas

Great, I'll keep putting it off then :laughing: and maybe it will resolve itself.

jrasm91 avatar May 24 '23 21:05 jrasm91