jcelaya / hdrmerge

HDR exposure merging
http://jcelaya.github.io/hdrmerge/
Other
370 stars 78 forks source link

Is there a way I could import .cr3 files from Canon-R? #212

Open adamhawkey opened 3 years ago

adamhawkey commented 3 years ago

Is there a way I could import .cr3 files from Canon-R? I am looking to merge hundreds of thousands of bracketed exposures for a stop motion project. I am looking for a command line option and this may very well be it. Is it a matter of updating to more recent libraw, or more involved? Thank you, Adam Hawkey

Entropy512 commented 1 year ago

Building against newer libraw SHOULD work in theory.

giovariot commented 3 weeks ago

The problem is that src/LoadOptionsDialog.cpp is missing many raw files extensions of formats actually supported by libraw

Here is the current list of supported file extensions from the load dialog. (src/src/LoadOptionsDialog.cpp from line 116)

void LoadOptionsDialog::addFiles() {
    QSettings settings;
    QVariant lastDirSetting = settings.value("lastOpenDirectory");
    QString filter(tr("Raw images ("
    "*.3fr "
    "*.ari *.arw "
    "*.bay "
    "*.crw *.cr2 *.cap "
    "*.dcs *.dcr *.dng *.drf "
    "*.eip *.erf "
    "*.fff "
    "*.iiq "
    "*.k25 *.kdc "
    "*.mdc *.mef *.mos *.mrw "
    "*.nef *.nrw "
    "*.obm *.orf "
    "*.pef *.ptx *.pxn "
    "*.r3d *.raf *.raw *.rwl *.rw2 *.rwz "
    "*.sr2 *.srf *.srw "
    "*.x3f"
    ")"));

Adding support for more extensions allows support for additional formats. I added a few different formats but I think more could be added.

void LoadOptionsDialog::addFiles() {
    QSettings settings;
    QVariant lastDirSetting = settings.value("lastOpenDirectory");
    QString filter(tr("Raw images ("
    "*.3fr "
    "*.ari *.arw "
    "*.bay "
    "*.crw *.cr2 *.cr3 *.cap *.cs1 *.cine "
    "*.dcs *.dcr *.dng *.drf *.dc2 *.dsc "
    "*.eip *.erf "
    "*.fff "
    "*.hdr "
    "*.ia *.iiq "
    "*.k25 *.kdc *.kc2 "
    "*.mdc *.mef *.mos *.mrw "
    "*.nef *.nrw "
    "*.obm *.orf "
    "*.pef *.ptx *.pxn "
    "*.qtk "
    "*.r3d *.raf *.raw *.rdc *.rwl *.rw2 *.rwz "
    "*.sr2 *.srf *.srw *.sti"
    "*.x3f"
    ")"));

I'd add a merge request but I'm not a developer and I don't know how to do that '-_-