Open GustavMH opened 7 months ago
This is the reason: https://github.com/Beep6581/RawTherapee/blob/c3402b18d55871e5787b30d5cc651ef29c5254a6/rtengine/dcraw.cc#L9612-L9615
Files smaller than 100,000 bytes will be ignored. The code is very old and precedes the git history, so I can't see the reason why the size limit is there. If the limit is removed, the small dng (8540 bytes) loads fine.
Ah, I was guessing https://github.com/Beep6581/RawTherapee/pull/6576 and not that, but that's a good find!
DNGs such as @GustavMH 's are extremely rare but obviously valid (such as possibly from one of those ultra-high-speed cameras), so I'm guessing this was a bad assumption from the times when any camera that shot raw was a few megapixels.
Short description
rawtherapee-cli
can't open certain .dng files if its dimensions are smaller than 225 by 225 photosites.Steps to reproduce
rawtherapee-cli -c small.dng
using thesmall.dng
from dngs.zip.The command yield the following output:
Expected behavior RawTherapee should produce a JPEG image of the input .dng, instead of rejecting the file.
Additional information The behavior is present in RawTherapee-cli version 5.9 and a fresh debug build
version 5.10-64-g6dd99ca3d
.Normally the program exits normally when rejecting the .dng file, introducing breakpoints into the source, and recompiling, reveals that the
is_raw
checkrawimage.cc:474
fails.My next guess would be that dcraw can't parse the file, however
dcraw small.dng
works.About the build: