CM7 / Gingerbread camera rotation issues? - EVO 4G Q&A, Help & Troubleshooting

Using CyanogenMod 7 on my Evo, when I take a picture in landscape mode, it doesn't automatically rotate. The picture is stored as if I took it in portrait mode. Therefore, if I send it to anybody, it is incorrectly rotated.
I have tried using the "Rotate Right" option when viewing the picture Gallery, and that fixes the display on the phone, but it doesn't seem to actually alter the picture. When I send it, it is still rotated 90 degrees too far to the left.
Is this just a bug in CM7? Anybody encounter this?

imekul said:
Using CyanogenMod 7 on my Evo, when I take a picture in landscape mode, it doesn't automatically rotate. The picture is stored as if I took it in portrait mode. Therefore, if I send it to anybody, it is incorrectly rotated.
I have tried using the "Rotate Right" option when viewing the picture Gallery, and that fixes the display on the phone, but it doesn't seem to actually alter the picture. When I send it, it is still rotated 90 degrees too far to the left.
Is this just a bug in CM7? Anybody encounter this?
Click to expand...
Click to collapse
I am running CM7 build 5 and justed tested that--I do NOT have that problem at all.

Examiner19 said:
I am running CM7 build 5 and justed tested that--I do NOT have that problem at all.
Click to expand...
Click to collapse
Agreed, on the '05 nightly I have not had the issue at all .. I am using the Savaged-Zen-Beta-CFS-HAVS-SBC-WiMAX Kernel though...
I am on 003 evo, original camera.

I just updated from Build #3 to #5, and the problem is gone! That was easy.

Related

Use of front camera in HTC EVO

Hello Everybody,
I'm developing an android application which uses the front camera.
As the Android SDK doesn't supoprt it natively, I need to fint the register name which tells the system to use the front camera. Unfortunately, I do not know how this parameter is called. Does anyone can help me?
btw, As I do not have an HTC Evo If anybody can help me by testing my app on its HTC evo, it will helps me a lot.
Many thanks in advance,
Best regards.
ill test if you tell me what the app does/is for
chikenkilr said:
btw, As I do not have an HTC Evo If anybody can help me by testing my app on its HTC evo, it will helps me a lot.
Many thanks in advance,
Best regards.
Click to expand...
Click to collapse
All I could think of was some of the CraigsList replies I get that want my item shipped to Africa.
GL with your app, hope it's a fun one, not enough stuff uses the front camera yet.
Hi,
many thanks for your answer and your help.
My app is quite simple, it acts as a mirror by displaying the front camera in full screen (it crops left and right parts of the picture in order to maximise the picture surface.
My app is avaiblable in the android market under the name : MagicMirror-Lite
I get some feedbacks that my app does work on Evo devices.
Before adding other features (such as zoom and so on), I would like to get first quite a reliable app which works on most of terminals (which have a front camera of course).
Pao23 said:
GL with your app, hope it's a fun one, not enough stuff uses the front camera yet.
Click to expand...
Click to collapse
I think the same, but as there is no explicit command in the android SDK which allows to use the front camera, I first need to get a reliable way to use front cams.
chikenkilr said:
Hi,
many thanks for your answer and your help.
My app is quite simple, it acts as a mirror by displaying the front camera in full screen (it crops left and right parts of the picture in order to maximise the picture surface.
My app is avaiblable in the android market undre the name : MagicMirror-Lite
I get some feedbacks that my app does work on Evo devices.
Before adding other features (such as zoom and so on), I would like to get first quite a reliable app which works on most of terminals (which have a front camera of course).
Click to expand...
Click to collapse
I like that bro im in on that! Givein that app a go thanx!!
Sent from my 1.2 HP EVO
explicit command in the android SDK which allows to use the front camera
Click to expand...
Click to collapse
The Cyanogen team has the front facing commands figured out.
Also, these guys do too http://www.popcrowd.com/
Maybe one would be willing to share or you could take a peak at their code.
Hi everybody,
Many thanks for your inputs.
If I made everything right, my application should now work on Sprint devices.
I uploaded a new version of the application. So, if you can test it on yours, it will be very helpful for me.
Cheers!
It uses the main camera on the EVO not the front one like you want.
Sorry.
Image is also turned 90 degrees...
For the rotation this is normal as the rear camera is rotated to 90° compared to the front camera (in order to use the rear camera in landscape mode and the front camera in portrait mode).
Ok well it still uses the wrong camera.
Looks promsing though.
Many thanks,
and before adding more sexy-features (like pinch zoom, or picture grabbing...) I want first to make sure my app is compatible with most mobile devices.
(If you have features ideas, do not hesitate )
Cool.
I'll test it again once you see about using the front camera.
I think I found what was wrong,
in the manifest file, I added:
<uses-library android:name="com.sprint.hardware.twinCamDevice" android:required="false"/>
I hope that this will make the things goes right for Sprint users without generating bugs for non-Sprint users.
how about make a video chat app that works all the time
chikenkilr said:
I think I found what was wrong,
in the manifest file, I added:
<uses-library android:name="com.sprint.hardware.twinCamDevice" android:required="false"/>
I hope that this will make the things goes right for Sprint users without generating bugs for non-Sprint users.
Click to expand...
Click to collapse
It works with the front camera now but you still need to rotate the image 90degress. I don't see why anyone would want a mirror that the reflection is sideways!
You're completely right, if picture is rotated, it is completely useless. ^^
What is that for the samsung Epic, picture owns the right orientation.
Futhermore, picture should be distorded on your Evo device?
Last question, I must rotate picture in clockwise or in counter-clockwise?
It works on my evo
You need to rotate image 90 degrees clockwise...no matter how I turned the phone the imageit displayed was turned facing 9 o'clock...
Keep working at it!
Swyped from an HTC Evo on MetroPCS...
Yep, me too. The top of my head points to the left no matter how I hold the camera. It 'IS' working with the front camera though.
I'm just beginning to test the front facing camera on my Evo too with some code. I 'think' I read that the Sprint library has to be included in the manifest (to enable the front camera); however, they say the app will not load on phones that don't have this library. that seems pretty severe. Anyone tested that out ?
It would be nice to make apps that use the front camera if possible but still use the regular cam if the front one's not available.
Hi rufus,
Yes the library must be loaded, but, as I mentioned above, you must add the :"android:required="false". So if the library exists, it will be loaded and if not, it doesn't mattre. But you need to add in your source a test to check if the library exists or not. It is explained in the sprint sdk.
Ok I'll add a test on my program add add a rotation if detected phoe is an HTC evo.
Is the ratio of the picture ok or not?
The ratio of the picture is good, but I assume once it's rotated 90 degrees, it wont' be. It's still rotated 90 counterclockwise...the top of my head is at the left.

[Q]Camera restart phone

Hi. Mine phone was on Android 2.2. I'll put official (s**t) update and sometimes when I'm takig picture camera is suspending and restart the phone.
I put custom rom RCMixS_v2.0_A2SD_CM7Hboot and sometimes camera do it again.
Any solution's?
Radio is up-to-date?
SwiftKeyed from Oxygen with Transparent XDA App
Latest 32.56.00.32U_5.17.05.23 And nowrecording in 720p is good, but playing very bad
Try another video player.
SwiftKeyed from Oxygen with Transparent XDA App
Re. camera restarting phone - it's been reported that when on autobrightness, the camera will reboot the phone sometimes. Using an alternative camera app (like Camera 360 for instance), or not using autobrightness for the display, will help.
I also had this problem, and since switching camera apps it hasn't happened.
Changing that and now work fine. Thx @rafithegreat .
And Video Recoring in 720p now is very bad. Even if I play in MoboPlayer it's not so smooth.
Now recordingin norma.
One more question: how to turn on Time Stamp when I'm taking photo?
dawpuc said:
Changing that and now work fine. Thx @rafithegreat .
And Video Recoring in 720p now is very bad. Even if I play in MoboPlayer it's not so smooth.
Now recordingin norma.
One more question: how to turn on Time Stamp when I'm taking photo?
Click to expand...
Click to collapse
dawpuc, I've your same problem.
I've tried to change some radios and rils, but the problem remains.
I don't want to use an alternative camera app, because I like the default app.
I also would like to continue to use the autobrightness utility, because I need it.
Can anyone help me?
P.S.: do you know how can I add the timestamp to my photos directly on the photo in one of the corners?
Why would anyone want time stamps?
On a digital camera, it is the very first thing I turn off.
Bouncer5 said:
Why would anyone want time stamps?
On a digital camera, it is the very first thing I turn off.
Click to expand...
Click to collapse
And this answer is senseless for solving the thread opener's problem.
Yeap. Yesterday problemwas solve (turn auto brightnes off). Today problem come again.
Writing too HTC. And waiting
@Bouncer5 that's your problem m8. I like Time Stamp (I print even that pictures from HTC DESIRE)
Bouncer5 said:
Why would anyone want time stamps?
On a digital camera, it is the very first thing I turn off.
Click to expand...
Click to collapse
Because, if I print a photo, I want remember in the future when I have made that photo without seeing that on my pc
So any solution?
...Up.....?
Hi, I have the same problem using Insertcoin CM7 V1.1.2 . The problem has gotten worse since Insertcoin 1.1.1. Back then only the camera would crash.
Since updating to Insertcoin 1.1.2 the camera freezes the whole phone. I have to take the battery out to reboot manually.
I've used a card gparted with ext3 and ext4 both.
At one point the camera kept working but images were not saved properly. Windows then detected problems with the card and some images were placed in the found folder during the check.
The crashes also happen with the separate Sense 3 camera zip linked on Insertcoin's blog. To be honest that one does not look different from the bundled camera and I have the idea that the problems started with the Sense 3 camera.
Hope this makes more people aware of the issue and perhaps attracts the attention of a dev.

[Q] Picture when send MMS will NOT rotate

So when I take pictures with my phones camera upright, the gallery shows the picture correctly... but now when I send that same picture via MMS (from either build in messenger or Handcent) it rotates the photo 90 degrees.
Now if I send a photo taken by my DSLR, that was copied to the SD, or a screen shot by drocap2, this does not happen.
Anyone else have this problem?
Anyone know how to fix this?
Does anyone else have this problem??
yes I've noticed this too. Don't know what the fix is except to take photos sideways (for texting)...anyone?
This annoys the crap outta me. I haven't figured out a way to fix this other than taking pictures in landscape.
nathan951 said:
So when I take pictures with my phones camera upright, the gallery shows the picture correctly... but now when I send that same picture via MMS (from either build in messenger or Handcent) it rotates the photo 90 degrees.
Now if I send a photo taken by my DSLR, that was copied to the SD, or a screen shot by drocap2, this does not happen.
Anyone else have this problem?
Anyone know how to fix this?
Click to expand...
Click to collapse
This is caused by the camera app, and how it tags the orientation. You can install a different app such as Pro Zoom 5X or something, and that should fix it. It sucks I know, but installing a different camera app should fix it (just try a free one first).
caspertodd said:
This is caused by the camera app, and how it tags the orientation. You can install a different app such as Pro Zoom 5X or something, and that should fix it. It sucks I know, but installing a different camera app should fix it (just try a free one first).
Click to expand...
Click to collapse
I thought maybe it was something when it compressed the image, but guess not.
The odd thing is, that in the gallery it is fine, just MMS is effected.
Is this something that can be addressed by developers?
nathan951 said:
I thought maybe it was something when it compressed the image, but guess not.
The odd thing is, that in the gallery it is fine, just MMS is effected.
Is this something that can be addressed by developers?
Click to expand...
Click to collapse
Unfortunately not. The only fix is a different camera app.
Sent from my SPH-D700 using XDA App
Sorry , not trying to beat a dead horse.. but are you saying that the stock camera APK can not be fixed/tweaked?
caspertodd said:
Unfortunately not. The only fix is a different camera app.
Sent from my SPH-D700 using XDA App
Click to expand...
Click to collapse
nathan951 said:
Sorry , not trying to beat a dead horse.. but are you saying that the stock camera APK can not be fixed/tweaked?
Click to expand...
Click to collapse
I'm sorry, I thought you meant the Rom/Kernel developers fixing the problem in the Rom/Kernel itself. Yeah, the actual camera app probably could be fixed, but the problem is getting someone to do it. Not sure if anyone here wants to take the time to look at it when there are other camera apps that do not have this issue.
You could also try this camera. Its the MIUI camera. Just place it in system/app, might have to reboot.
http://db.tt/CIeT1DT
Roll Tide
I pushed theis to the system/app, Loaded it, but it still sends MMS image wrong
(Its only when sending MMS, with stock camera, or this camera)
zanderman112 said:
You could also try this camera. Its the MIUI camera. Just place it in system/app, might have to reboot.
http://db.tt/CIeT1DT
Roll Tide
Click to expand...
Click to collapse
nathan951 said:
I pushed theis to the system/app, Loaded it, but it still sends MMS image wrong
(Its only when sending MMS, with stock camera, or this camera)
Click to expand...
Click to collapse
So you used this camera, took a picture in portrait mode, sent it va mms, and its still messed up. Darn.
Roll Tide
zanderman112 said:
So you used this camera, took a picture in portrait mode, sent it va mms, and its still messed up. Darn.
Roll Tide
Click to expand...
Click to collapse
Yeah, Didnt help...
Try GoSMS.
Sent from my WebToplessly Rooted MoPho, {Motorola® Photon™ 4G (MB855)} using the XDA Premium app on Sprint®, the Now Network™.
(Unlocked Bootloader Pending until Permanant Unlock w/ 4G WiMax®)
The workaround I use to fix this is to crop the picture. Even just slightly in any gallery program. Then it orients correctly when attached. ^_^
Problem is the froyo epic ota. A Ginger leak corrects this issue. No way around it as far as I know. Start taking pics in landscape :-\
nathan951 said:
So when I take pictures with my phones camera upright, the gallery shows the picture correctly... but now when I send that same picture via MMS (from either build in messenger or Handcent) it rotates the photo 90 degrees.
Now if I send a photo taken by my DSLR, that was copied to the SD, or a screen shot by drocap2, this does not happen.
Anyone else have this problem?
Anyone know how to fix this?
Click to expand...
Click to collapse
This was addressed many months ago. The simple answer is, yes, it could be fixed. But the fix is more complicated than the matter is worth. Recent digital cameras employ an accelerometer to determine how the camera is being held and thus dictate how computers and devices should orient the resultant picture. It does this via some sort of digital tag in the pictures coding that an application then reads. For some reason, the tag the Epic camera creates is then not properly read by the same phones messaging app. Frustrating? Sure. But is an mms that will be looked at for a matter of seconds before being discarded worth hours of effort to correct? The majority of developers have apparently decided it's not worth the effort, and this would greatly exceed my own knowledge.
Simple fix? Another messaging or camera app as suggested.
I came upon this save issue, but I have the Epic Touch 4G.
I take the pic, and with Handcent, the image is rotated 90° counter clockwise.
But with the Native message app, the picture is fine, and not rotated.
Would appear to be an app issue, but with the EVO 4G, the pic was not rotated using Handcent.
I'm a little confused on this one.

[Q]uestiion about Photo Orientation

am i high or is this phone not quite bright enough to determine photograph orientation when uploaded to an app? if i take a shot in portrait mode, it'll upload to facebook, twitter, etc. in landscape. as far as i can tell (at least in twitter) there is no way to rotate that. any one else had this issue? are we forced to always shoot in landscape?
Rotate your phone 180 degrees when taking pic
Sent from my SGH-T989 using xda premium
quest4fire said:
Rotate your phone 180 degrees when taking pic
Sent from my SGH-T989 using xda premium
Click to expand...
Click to collapse
180 degrees is just upside down resulting in the same issue. i can 'rotate' the phone 90 degres and that puts it in "landscape" and it'll work fine. that said it seems ridiculous that i can't take a shot in portrait mode and it'll just work. pretty big miss by samsung.
hobakill said:
180 degrees is just upside down resulting in the same issue. i can 'rotate' the phone 90 degres and that puts it in "landscape" and it'll work fine. that said it seems ridiculous that i can't take a shot in portrait mode and it'll just work. pretty big miss by samsung.
Click to expand...
Click to collapse
Thanks. I meant 90 degrees. My brain not working good in the morning. LOL!
Yeah its a miss by Samsung. Later when we get new ROMs (you will need to be rooted), Im sure there will be a camera app ported from another device (maybe HTC Amaze) that addresses this issue.
quest4fire said:
Later when we get new ROMs (you will need to be rooted), Im sure there will be a camera app ported from another device (maybe HTC Amaze) that addresses this issue.
Click to expand...
Click to collapse
already on the juggernaut bandwagon!

Problem with Gallery - Grey Pictures

Hi all,
I have a problem I hope the great minds here can help me with.
I'm using Slimbean 6.2. I have taken two pictures recently with ordinary camera.
Trouble is, the pics appear grey in the Gallery.
Interestingly, the thumbnails show the image clearly as expected.
I think it may be because the camera wasn't focused, the first pic was of my daughter on a fairground ride and the second was of a train (don't ask).
Is there anything I can do to make them appear correctly?
Examples attached.
You can see the thumbnails clearly, when I tap into the second photo down on the left, I get a grey pic.
Sent from my HTC One X using xda app-developers app
Have you tried to transfer them to your pc or laptop ?
Bam Bam Bam
nogotaclue said:
Have you tried to transfer them to your pc or laptop ?
Click to expand...
Click to collapse
I'll try that, but in Dropbox on my laptop they are appearing as grey as well..
I've just flashed build 6 and then 6.9 weekly and camera is working in both. I took a number of shots on both builds and purposefully made sure some were out of focus, no problems at all. Best option is probably just to flash the rom again, try the weekly it seems really stable and the camera is definitely working(as it appears to be in build 6).or You could try to push the camera apk first
Bam Bam Bam
It's odd, it's only happened on a couple of pics, others have come out fine.
Looking at the details, width height and orientation are the same as for other pics (which did work).
Exposure time is 1/2000 and ISO = 100
Size is 43.33kb vs others which are approx 1.5mb
I'll probably never know...
it happened to 2 or 3 month ago but I can't for the life of me remember which rom it was or how i resolved it, hopefully it will be ok now
No fixes available for that ATM!
Change to 6 MP and the camera won't take gray photos... That's the only temp. fix AFAIK!
Delete please
vin4yak said:
Change to 6 MP and the camera won't take gray photos... That's the only temp. fix AFAIK!
Click to expand...
Click to collapse
Thanks vin4yak, I'll try that and hope it doesn't happen again
Happened to me a while ago on viperx rom completely out of the blue. I thought it might be camera settings (even though I changed nothing at the time) but i reset them and it continued intermittently. Only for one evening, and it's never happened again. I hadn't changed anything else either, it just started with the grey pic rubbish, and then for no apparent reason it stopped! And never did it again.. I know what I've said doesn't exactly help a lot , just wanted to say that the 6mp fix might not be necessary.. Must be something else that caused it
Sent from my HTC One X using xda app-developers app

Categories

Resources