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

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

@baumerik

Description

@baumerik

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions