×

Discussion Board

Results 1 to 3 of 3
  1. #1
    Regular Contributor
    Join Date
    Apr 2008
    Posts
    445

    Defining jpeg rotation in EXIF metadata (problem?)

    Hi,
    I am trying to rotate a picture by defining the picture rotation in the EXIF metadata:
    Code:
    CExifModify* modify;
    
    switch (data.iDeviceOrientation)
    {
    case TSensrvOrientationData::EOrientationDisplayUp: //90
    	iPictureOrientation = 0x000006;
    	 break;
    case TSensrvOrientationData::EOrientationDisplayDown: //-90
    	iPictureOrientation = 0x000008;
    	 break;
    case TSensrvOrientationData::EOrientationDisplayLeftUp: //180
    	iPictureOrientation = 0x000003;
    	 break;
    case TSensrvOrientationData::EOrientationDisplayRightUp: // 0
    	iPictureOrientation = 0x000001;
    	 break;
    default:
    	iPictureOrientation = 0x000001;
    }
    
    modify->SetOrientationL(iPictureOrientation);
    When I look at the image e.g. in IrfanView, Photoshop, etc. then the image is correctly rotated. BUT when I look at the image in the built-in Nokia (N8) photo view the image is not rotated. Does the Nokia photo viewer require something else to rotate pictures correctly?

    Regards,

  2. #2
    Nokia Developer Moderator
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    29,174

    Re: Defining jpeg rotation in EXIF metadata (problem?)

    could be that it does not read the tag, instead you might want to save the image with correct rotation.

  3. #3
    Regular Contributor
    Join Date
    Apr 2008
    Posts
    445

    Re: Defining jpeg rotation in EXIF metadata (problem?)

    Thanks. Yes, you are right.

Similar Threads

  1. camera capture in jpeg exif format not working
    By arnab321 in forum Symbian
    Replies: 1
    Last Post: 2011-04-24, 12:28
  2. Replies: 4
    Last Post: 2008-04-08, 07:05
  3. Capturing image in jpeg and exif format
    By myuuuu in forum Mobile Java Media (Graphics & Sounds)
    Replies: 3
    Last Post: 2008-03-04, 10:07
  4. JPEG EXIF to JPEG JFIF conversion
    By ethune in forum Symbian
    Replies: 0
    Last Post: 2004-05-15, 13:39

Posting Permissions

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