×

Discussion Board

Results 1 to 5 of 5
  1. #1
    Regular Contributor
    Join Date
    Oct 2013
    Location
    Pennsauken, NJ, USA
    Posts
    118

    Bug in IImageProvider.GetInfoAsync() for v1.2beta AND WP8.1 rotate tool

    Have you ever taken a picture and realized that the phone sensor hadn't changed your orientation from portrait to landscape yet? Probably...

    I have a picture that the phone originally took while in Portrait mode. I used the built-in editing functions to rotate the picture so that it is in Landscape.

    I can see that the picture is in landscape... that's how it is presented in the pictures hub. If I go to the OneDrive backup, it gives me the correct dimensions: 3552x2000. However, GetInfoAsync() is giving me the reverse dimensions: Height = 3552 and Width=2000.

    If you browse the EXIF data, you see that it is wrong though:
    Image Width=2000
    Image Height=3552

    So, the jpeg has incorrect EXIF data and the Imaging SDK is relying on this data only for dimensions... not sure who is more in the wrong here...

    This is the picture in question if you want to see:
    http://1drv.ms/Qkv10Y

    This is the tool I used for EXIF data:
    http://exifdata.com/
    Last edited by leemcpherson; 2014-04-18 at 16:48. Reason: exif website added

  2. #2
    Nokia Developer Administrator
    Join Date
    Dec 2013
    Posts
    303

    Re: Bug in IImageProvider.GetInfoAsync() for v1.2beta AND WP8.1 rotate tool

    Thank you for that Lee. I've reported it internally so we can work on a fix.

  3. #3
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    28,751

    Re: Bug in IImageProvider.GetInfoAsync() for v1.2beta AND WP8.1 rotate tool

    The EXIF page also says "Orientation: Rotate 270 CW".
    Note that lossless JPEG/EXIF rotation does not re-encode the file, just marks it to-be-rotated-prior-to-displaying. The question is if you / the SDK sees this additional info or not.

  4. #4
    Regular Contributor
    Join Date
    Oct 2013
    Location
    Pennsauken, NJ, USA
    Posts
    118

    Re: Bug in IImageProvider.GetInfoAsync() for v1.2beta AND WP8.1 rotate tool

    Quote Originally Posted by wizard_hu_ View Post
    The EXIF page also says "Orientation: Rotate 270 CW".
    Note that lossless JPEG/EXIF rotation does not re-encode the file, just marks it to-be-rotated-prior-to-displaying. The question is if you / the SDK sees this additional info or not.
    Thanks, I missed that part. So then the Imaging SDK is at fault because there is no other information besides the size...

  5. #5
    Nokia Developer Expert
    Join Date
    Mar 2013
    Posts
    11

    Re: Bug in IImageProvider.GetInfoAsync() for v1.2beta AND WP8.1 rotate tool

    Thanks for the error report. We actually have a fix for this issue. The fix should be available really, really soon.

    -Bert
    Nokia Imaging SDK team

Similar Threads

  1. IImageProvider as BitmapImage!
    By venu238 in forum Windows Phone Imaging
    Replies: 2
    Last Post: 2014-03-12, 16:23
  2. How to rotate?
    By doctorhsly in forum Mobile Java Media (Graphics & Sounds)
    Replies: 3
    Last Post: 2006-11-30, 13:07
  3. How can rotate 30 , 45 , 189 etc...
    By icq98hk in forum Mobile Java Media (Graphics & Sounds)
    Replies: 3
    Last Post: 2003-08-31, 13:31

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×