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.

inside custom component

Java Development

Reply
Developer
Posts: 55
Registered: ‎09-09-2008
My Device: Not Specified

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.

BlackBerry Development Advisor
Posts: 15,784
Registered: ‎07-09-2008
My Device: BlackBerry PRIV
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.
Problem solved? Click the Accept As Solution button.
Found a bug? Report it using Issue Tracker
Developer
Posts: 124
Registered: ‎09-06-2010
My Device: Not Specified

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.

Developer
Posts: 124
Registered: ‎09-06-2010
My Device: Not Specified

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? 

Developer
Posts: 723
Registered: ‎03-12-2009
My Device: Playbook

Re: Photo is rotated on Torch

Same thing happens with Storm.

 

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