Skip to content
This repository has been archived by the owner on Dec 18, 2017. It is now read-only.

Picture Chooser on Windows phone smash images with exif rotation #35

Open
baumerik opened this issue Nov 30, 2015 · 0 comments
Open

Picture Chooser on Windows phone smash images with exif rotation #35

baumerik opened this issue Nov 30, 2015 · 0 comments

Comments

@baumerik
Copy link

If you choose an image from Library which have a Exif Rotation stored the image is destroyed see Attachments:

The Lumia Camera App, which is default, always store the rotation as Exif Property. So every image taken by this camera app cannot be selected.

we use this function:

var pictureChooserTask = Mvx.Resolve<IMvxPictureChooserTask>();
return await pictureChooserTask.ChoosePictureFromLibraryAsync(1280, 75);

as fix we have ignored the rotation on processing the image(see my Commit).

var pixelData = await decoder.GetPixelDataAsync(
                BitmapPixelFormat.Rgba8,
                BitmapAlphaMode.Straight,
                transform,
                ExifOrientationMode.RespectExifOrientation,
                ColorManagementMode.DoNotColorManage);

Changed to this

var pixelData = await decoder.GetPixelDataAsync(
                BitmapPixelFormat.Rgba8,
                BitmapAlphaMode.Straight,
                transform,
                ExifOrientationMode.IgnoreExifOrientation,
                ColorManagementMode.DoNotColorManage);

Is this a solution or prefer you another way?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

No branches or pull requests

1 participant