blissd / fotema

Photo gallery for Linux
58 stars 7 forks source link

Add support for RAW file? #168

Open Krindog7337 opened 2 weeks ago

Krindog7337 commented 2 weeks ago

It looks like Fotema lack support for viewing raw files like .CR2, ORF, .ARW, etc. Any plan for adding this in the future?

blissd commented 2 weeks ago

Hi Krindog7337. Fotema uses Glycin for loading images, so will have to wait for RAW support to land their first. Once Glycin supports RAW files, I'll update Fotema to support them too.

There is a PR for adding RAW to Glycin, but it has languished for a while.

blissd commented 2 weeks ago

The last comment on the PR says the feature will be merged when "47 is branched".

CocolinoFan commented 2 weeks ago

How will the RAW photo feature be added? I am thinking that usually a device that takes RAW photos will do it by enabling a toggle in the settings, giving you a RAW file in addition to the JPEG/PNG. If Fotema gains the ability to view RAW photos, I am worried that it will result in duplicate photos in the gallery. How about a toggle at the top of every photo JPEG/RAW and you can switch between the two versions of the photo? If you only have a RAW or a JPEG of a photo, the toggle will be grayed-out and selected on whatever the file type is. untitled

blissd commented 2 weeks ago

I don't know much about how RAW files are used, I'm afraid. What I would do is update the Fotema code for scanning for photos to recognize the RAW file type extensions and then they would appear like any other photo, which will result in duplicates if RAW files have a non-RAW sibling.

If RAW photos are often paired with a non-RAW sibling, then some rules would need to be in place to detect that and deduplicate or tie up siblings... but that can be tricky. For iOS live photos there are sibling photo/video pairs and I had hoped to match pairs by file name (minus extension) alone, but that wasn't successful as I (inexplicably!) had many files with the same name (minus extension) that weren't actually siblings. Ultimately I had to parse an identifier that iOS puts into the photo and video metadata and use that to confirm pairings.

If there are siblings for RAW files, then I'm sure something could ultimately be figured out, but to begin with Fotema will show duplicates.