Hi, just to try and clear up some of the confusion surrounding this topic...
I think the reason you see white and grey boxes is because the image viewer can't decode DNG files, and so you're simply seeing the image "background". This is what would show through if you were viewing a completely transparent image file.
Our rpicam command line applications save a little greyscale thumbnail with the DNG, knowing the not everyone can handle DNG. (The pidng library that we use from Picamera2 doesn't save a thumbnail like this).
It might help to convert DNG files to regular images before viewing them. There are many raw converters but, even though it's quite old now, I still find dcraw the most convenient for getting a quick preview. Just runand it will make <dng-filename>.ppm which should be easy to view. (And I think its "sudo apt install dcraw" if you don't have it.)
I think the reason you see white and grey boxes is because the image viewer can't decode DNG files, and so you're simply seeing the image "background". This is what would show through if you were viewing a completely transparent image file.
Our rpicam command line applications save a little greyscale thumbnail with the DNG, knowing the not everyone can handle DNG. (The pidng library that we use from Picamera2 doesn't save a thumbnail like this).
It might help to convert DNG files to regular images before viewing them. There are many raw converters but, even though it's quite old now, I still find dcraw the most convenient for getting a quick preview. Just run
Code:
dcraw -w <dng-filename>
Statistics: Posted by therealdavidp — Mon Apr 08, 2024 8:32 am