In the FromStream method of WriteableBitmapConvertExtensions the BitmapDecoder is using ExifOrientationMode.RespectExifOrientation but the new WriteableBitmap is created with the original PixelWidth and PixelHeight. This leads to weird image effects when reading photos from an iOS or Android device.
Fix
Change:
bmp = new WriteableBitmap((int)decoder.PixelWidth, (int)decoder.PixelHeight);
to:
bmp = new WriteableBitmap((int)decoder.OrientedPixelWidth, (int)decoder.OrientedPixelHeight);
cheers
Perry
Fix
Change:
bmp = new WriteableBitmap((int)decoder.PixelWidth, (int)decoder.PixelHeight);
to:
bmp = new WriteableBitmap((int)decoder.OrientedPixelWidth, (int)decoder.OrientedPixelHeight);
cheers
Perry