attached the WIC Diag of a Portrait Oly ORF file.
But we analyzed that in the past and it was very clear that this is a bug in the WIC when using the embedded JPG (in case it is in portrait orientation).
When processing the RAW with WIC the orientantion is OK.
I don't remember the exact details. The Exif of an portrait .ORF contains:
Orientation : Rotate 270 CW
It was something like the embedded JPG is already stored in correct orientation within the .ORF file, while the RAW data itself is horizontal.
But WIC applies "Rotate 270 CW" to both JPG and RAW, and therefore JPG ends up in wrong orientation. (But as said, not 100% sure about that anymore).
When you check the orientation of a portrait .ORF when using WIC with embedded JPG:

then you see that the Top of the image is pointing to the right: This is what happens when you rotate the image in correct portrait orientation by the command stored in the exif (Rotate 270 CW). This is why I think the preview JPG is already stored correctly in the ORF file, but WIC codec will rotate it based on Exif tag (Rotate 270 CW). But for .ORF files this rotation tag should only apply for the RAW data itself (WIC using RAW instead of embedded JPG shows correct orientation)
Here how the RAW should be stored in RAW (RawDigger Screenshot -> will show RAW without rotation applied)
