To reproduce:
- Start MITK Workbench
- Drag and drop a jpg/jpeg/png file onto the multiwidget
-> Crash
By comparison
- same
1a. Drag and drop a .nrrd file
- same
-> No Crash
To reproduce:
-> Crash
By comparison
1a. Drag and drop a .nrrd file
-> No Crash
No crashes here.
On my Windows machine it gracefully says in a message box that it has no reader available for JPG/JPEG. PNGs are working.
Okay, it seems the reproduction is not quite as easy to do:
-> Crash
Access violation in mitkImage.cpp line 148
double returnvalue = (((T*) data)[rgboffset ]);
Besides the crash, this reveals (reminds me of) another issue. Should we match known files extensions in a case insensitive way to file names?
I would imagine that loading "jpeg" files works, but "JPEG" doesn't currently (even on Windows).
Is there a reason not to? Off the top of my head I do not know any format where different capitalization is a different format.