Welcome!

Welcome to the Official BlackBerry Support Community Forums. This is your resource to discuss support topics with your peers, and learn from each other. New to the forum? Please visit the ‘Getting Started’ link below.
inside custom component

Java Development

Reply
Developer
ushernut
Posts: 55
Registered: ‎09-09-2008

Photo is rotated on Torch

From third party app, when we take photo on Torch, it looks correct on Torch, but when we grab the image data through fileConnection from file system,  the image is rotated. Same code works for all the other devices except Torch OS 6.0.

 

Is this an API issue for OS 6.0?

 

Thanks.

Please use plain text.
Administrator
MSohm
Posts: 12,957
Registered: ‎07-09-2008
My Carrier: Bell

Re: Photo is rotated on Torch

What are you doing when you grab the image?  Are you displaying it in a bitmap field or copying it for view on a PC?

 

The image should have orientation information stored in the EXIF information of the JPEG.

Mark Sohm
BlackBerry Development Advisor

Please refrain from posting new questions in solved threads.
Found a bug? Report it using the Issue Tracker
Please use plain text.
Developer
jtyberg
Posts: 124
Registered: ‎09-06-2010

Re: Photo is rotated on Torch

I have the exact same problem.  I'm retrieving the file from the file system.  I don't do any processing of the file. I just pass the file path back to my WebWorks app and display in HTML using <img src="filePath">.

 

It's not just the Torch. Happens on 9550 as well.

 

The image always gets transposed.  If you hold the phone on its left side, it actually shows correctly on the page.

Please use plain text.
Developer
jtyberg
Posts: 124
Registered: ‎09-06-2010

Re: Photo is rotated on Torch

Interesting.  

 

The pictures taken show up correctly (not rotated) in the Media > Pictures viewer on the device.

 

When I display the image in the browser (5 or 6), it shows up rotated CCW by 90 degrees.

 

If I upload the image to a remote server, the file shows up correctly (not rotated).

 

So the picture file itself seems fine.  Could it be the browser? 

Please use plain text.
Developer
dnepr
Posts: 723
Registered: ‎03-12-2009

Re: Photo is rotated on Torch

Same thing happens with Storm.

 

Both area "meant" to be used in landscape mode when capturing pictures.

Please use plain text.