RAW Support in Hugin 2019 failed

278 views
Skip to first unread message

Michael Kraul

unread,
Jun 25, 2019, 5:30:19 PM6/25/19
to hugin and other free panoramic software
Hello,

sorry for my english ;)

When adding a RAW file this will not be decoded

in the terminal is the following:

 => ./Hugin
objc[71978]: Class FIFinderSyncExtensionHost is implemented in both /System/Library/PrivateFrameworks/FinderKit.framework/Versions/A/FinderKit (0x7fff96b823d8) and /System/Library/PrivateFrameworks/FileProvider.framework/OverrideBundles/FinderSyncCollaborationFileProviderOverride.bundle/Contents/MacOS/FinderSyncCollaborationFileProviderOverride (0x1164f7f50). One of the two will be used. Which one is undefined.
MissingRequired: TIFF directory is missing required "ImageLength" field.
ERROR: caught exception:
Precondition violation!
Unable to open file '/Users/.../Panorama/DSC02252.ARW'.
(/Users/niklas/development/cmake/hugin/mac/ExternalPrograms/repository/vigra-1.11.1/src/impex/tiff.cxx:271)

Could not get pixel type for file /Users/.../Panorama/DSC02252.ARW


the binary is from sourceforge


Greets Michael

T. Modes

unread,
Jun 26, 2019, 10:54:01 AM6/26/19
to hugin and other free panoramic software


Am Dienstag, 25. Juni 2019 23:30:19 UTC+2 schrieb Michael Kraul:

When adding a RAW file this will not be decoded

Have you set the file filter in the add files dialog to raw files?

Niklas Mischkulnig

unread,
Jun 26, 2019, 12:53:09 PM6/26/19
to hugin and other free panoramic software

Wasn't there an "Add Raw Image" dialog once? Using the normal one for images adds only the tiny embedded

thumbnails for me (NEF files), rather than throwing an exception (not ideal either).


The "Add Image" dialog:

Bildschirmfoto 2019-06-26 um 18.51.55.png

T. Modes

unread,
Jun 26, 2019, 2:39:41 PM6/26/19
to hugin and other free panoramic software


Am Mittwoch, 26. Juni 2019 18:53:09 UTC+2 schrieb Niklas Mischkulnig:

Wasn't there an "Add Raw Image" dialog once? Using the normal one for images adds only the tiny embedded

thumbnails for me (NEF files), rather than throwing an exception (not ideal either).

It is still there. During beta 1 and 2 I changed this to integrate it into the normal add images dialog. Now the add raw dialog is called when a raw file is selected in the add images dialog (this is detected by using the selected file type filter.) Not sure why the this is missing in your screen shot - according to wxWidgets doc this is also supported on Mac. On Windows and Unix it looks like.

addImage.png



Using the normal one for images adds only the tiny embedded

thumbnails for me (NEF files), rather than throwing an exception (not ideal either).

This happens when image file is selected in the file type list. What exactly happens here depends on the internal raw format.

Thomas
 

T. Modes

unread,
Jun 26, 2019, 3:32:44 PM6/26/19
to hugin and other free panoramic software
Hi Niklas,


Am Mittwoch, 26. Juni 2019 20:39:41 UTC+2 schrieb T. Modes:
Now the add raw dialog is called when a raw file is selected in the add images dialog (this is detected by using the selected file type filter.) Not sure why the this is missing in your screen shot - according to wxWidgets doc this is also supported on Mac.

okay, found it. Apple decided that the file open dialog should not show a file type list and wxWidgets follow this recommendation, what the heck...
I found a (poorly documented) workaround to force the display of the file type list again on OS X. Could you please test current tip?

TIA
Thomas

Niklas Mischkulnig

unread,
Jun 26, 2019, 5:10:51 PM6/26/19
to hugin and other free panoramic software
Yes, that works:

Bildschirmfoto 2019-06-26 um 23.09.15.png


Niklas

David W. Jones

unread,
Jun 27, 2019, 12:42:28 AM6/27/19
to hugin-ptx
Hello!

That sounds like the ARW file doesn't contain the ImageLength field
that's required according to the TIFF standard. Sounds like your Sony
camera doesn't quite do things right.

Can you process the images using RAW conversion software?
--
David W. Jones
gnome...@gmail.com
wandering the landscape of god
http://dancingtreefrog.com

Michael Kraul

unread,
Jun 27, 2019, 6:56:23 AM6/27/19
to hugin and other free panoramic software
I have no problem process my RAW Files in other conversion Software (darktable + dcraw).

MIchael

David W. Jones

unread,
Jun 27, 2019, 7:19:07 AM6/27/19
to hugi...@googlegroups.com
Very good! This is why I saw - and still see - no point in giving Hugin the ability to process RAW files. Processing RAW files is very dependent on manufacturers' quirks (such as not including a required field) that can change from camera firmware revision to the next. Programs dedicated to RAW conversion can keep up. Programs for which this is a secondary or tertiary function might not have the resources to keep up with less important functionality.

I use RawTherapee to process my Minolta D7 images into 48-bit TIFF images. Hugin has no problems with them while still getting the full information it needs for exposure, white point, and blending adjustments.

Which Sony camera do you have? Sony bought Minolta's camera division to jumpstart its DSLR line and still retains the ability on some models to use my existing Minolta-mount lenses. I'm thinking of going with Sony for my next camera.
David W. Jones
gnome...@gmail.com
wandering the landscape of god
http://dancingtreefrog.com

Sent from my Android device with F/LOSS K-9 Mail.

Niklas Mischkulnig

unread,
Jun 27, 2019, 7:34:02 AM6/27/19
to hugin and other free panoramic software
This is a bug in Hugin's file dialog on macOS and not related to any raw format (happens with Nikon NEF as well).

T. Modes

unread,
Jun 27, 2019, 11:45:19 AM6/27/19
to hugin and other free panoramic software
Hi Niklas,

Am Mittwoch, 26. Juni 2019 23:10:51 UTC+2 schrieb Niklas Mischkulnig:
Yes, that works:

 Ok, that looks better. But it seems that the file open dialog behaves different on Mac OS X. When you select another file type the other files are only grey out - can you still select the greyed out files, or can you select only the active images? If it is the former one, I need to change the logic for Mac OS.

Thomas

T. Modes

unread,
Jun 27, 2019, 11:51:00 AM6/27/19
to hugin and other free panoramic software
Hi GnomeNomad,


Am Donnerstag, 27. Juni 2019 13:19:07 UTC+2 schrieb GnomeNomad:
Very good! This is why I saw - and still see - no point in giving Hugin the ability to process RAW files. Processing RAW files is very dependent on manufacturers' quirks (such as not including a required field) that can change from camera firmware revision to the next. Programs dedicated to RAW conversion can keep up. Programs for which this is a secondary or tertiary function might not have the resources to keep up with less important functionality.
Hugin simply calls an external raw converter (dcraw, RawTherapee or darktable) as a comfort function for the user and to develop all images with the same settings. So the update is delegated to these programs and does not require further adjustment to Hugin. So this argument does not count.

Thomas

Niklas Mischkulnig

unread,
Jun 27, 2019, 3:10:07 PM6/27/19
to hugin and other free panoramic software
The grey ones aren't selectable, everything is fine. (I actually like this more than Windows, where folder can suddenly seem empty)

Niklas

David W. Jones

unread,
Jun 28, 2019, 1:48:42 AM6/28/19
to hugin-ptx
Well, it sounds to me like however Hugin is calling the original
poster's darktable and/or dcraw, it's doing something different from
what his Darktable/dcraw is doing when he opens his ARWs in those
applications vs Hugin. Don't know. When he opens the images in his
conversion tools, they don't report errors with the images. When Hugin
calls the converter, it reports errors with the images.

--

Niklas Mischkulnig

unread,
Jun 28, 2019, 3:20:26 AM6/28/19
to hugin and other free panoramic software
> When Hugin calls the converter, it reports errors with the images. 

Once again: there is a macOS-only bug that causes Hugin to treat raw files as "normal" pictures and
thus the raw converter was never executed.

Niklas

David W. Jones

unread,
Jun 28, 2019, 4:32:33 AM6/28/19
to hugi...@googlegroups.com
So is the MacOS-only bug being fixed?


--
David W. Jones
gnome...@gmail.com
wandering the landscape of god
http://dancingtreefrog.com

Niklas Mischkulnig

unread,
Jun 28, 2019, 4:37:04 AM6/28/19
to hugin and other free panoramic software
Yes, it already is.
Reply all
Reply to author
Forward
0 new messages