SX160IS: DNG wrong orientation if you lower hand too quick

  • 1 Replies
SX160IS: DNG wrong orientation if you lower hand too quick
« on: 24 / September / 2016, 22:06:54 »
If you lower your hand too quick after taking a shot,  the sx160is creates a DNG file with the wrong orientation. A landscape DNG shot turns into a portrait one.
The JPG version comes out fine with the correct orientation but not the corresponding DNG file.
I think a little delay after pressing the shutter, before CHDK generates the DNG header may fix the problem.  The only thing is that it may delay the DNG writing process.  This doesn't happen all the time, but from time to time I get DNG files with the wrong orientation.


Offline reyalp

  • ******
  • 11541
Re: SX160IS: DNG wrong orientation if you lower hand too quick
« Reply #1 on: 24 / September / 2016, 22:37:50 »
Thanks for mentioning this. I think I've occasionally had DNGs in the wrong orientation but never connected it to a specific cause.

The orientation value we use (PROPCASE_ORIENTATION) updates essentially in realtime, you can watch it change as you move the camera around. It's not connected to shooting, but it's possible that it stops updating in some parts of the shooting process. CHDK captures this value as soon as the image data is available (the start of the raw hook)

So my best guess would be that the orientation is changing between when the exposure ends, and the raw hook starts. If this is correct, delaying the DNG process would only make things worse. Also, if the jpeg comes out right, that would mean the value used for the jpeg exif is either a different propcase or is captured at earlier.

Not sure about fixing this. If there is a separate propcase that updates on shot used for jpeg, that would work.

It's also possible my theory above is wrong. Some logging could probably be used to determine that.
Don't forget what the H stands for.


Related Topics