Hi,
My Windows Phone 7.5 app saves camera photos. On Nokia Lumia 920 a portrait image will be upside down. How to fix this?
Printable View
Hi,
My Windows Phone 7.5 app saves camera photos. On Nokia Lumia 920 a portrait image will be upside down. How to fix this?
[QUOTE=Jari Ahola;907115]Hi,
My Windows Phone 7.5 app saves camera photos. On Nokia Lumia 920 a portrait image will be upside down. How to fix this?[/QUOTE]
Hi Jari,
This is a Forum focused on development for Windows Phone platform. Your question should be posted on [URL="http://discussions.nokia.com/t5/Nokia-Lumia/bd-p/Nokia_with_Windows_Phone"]Nokia Support Discussions[/URL].
(I think it is fine here, "My Windows Phone 7.5 app" sounds as developing a WP app)
You are right Wizard, the "My" makes all the difference.
Jari,
Sorry if I was too fast to assume it was not a developer question. Can you give us more details if you are talking about the Windows Phone camera app or if you are referring to an App created by you? If its an app created by you, it would be nice if you could shows us the code you are using.
Hello,
I heard about this "issue" before , but since I don't have a Lumia920 now , there's no way I can reproduce it.
However I know that the phone store EXIF data about the pictures taken with cameraTask(including Orientation), so you could try accessing this data and orient your savedimage based on the orientation in the EXIF data.
I suggest you read the EXIF information with this great .net simple lib : [url]http://www.codeproject.com/Articles/47486/Understanding-and-Reading-Exif-Data[/url]
I hope this helps,
Microsoft code sample
[url]http://code.msdn.microsoft.com/wpapps/Basic-Camera-Sample-52dae359[/url]
shows the problem I'm having. Just run it on Lumia 920. My app does not support front camera so you might want to remove the front cam initialization from MainPage.xml.cs but you start to see the problem with portrait photos even with the front cam.
Hi.
Microsoft code works correctly (Lumia 900 & 920) with CameraType.Primary. With frontcam, you need to add ScaleX =-1 in OnOrientationChanged.
You have problem with preview display or captured image? If it's captured image maybe this could help :
[url]http://www.developer.nokia.com/Community/Wiki/Extending_the_Windows_Phone_Pictures_Hub#Ensuring_correct_orientation_of_loaded_image[/url]