IPhone SDK: Saving an image from the camera rotates it

When I use an image retrieved from the camera and try to save it to the disk, it always looks rotated -90 degrees. Anybody else have this problem? Or know what's going on? What's the easiest way to just rotate it 90 degrees?
<code>
NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES);
NSString *writablePath = [[paths objectAtIndex:0] stringByAppendingString:@"/newImg.jpg"];
NSData * imageData = UIImageJPEGRepresentation([UIImage imageWithCGImage:cameraImage,1);
if (imageData != nil) {
[imageData writeToFile:writablePath atomically:NO];
</code>

Hi - I've found this post that might describe a similar (or same?) issue.
http://discussions.apple.com/thread.jspa?messageID=7936896&tstart=0
Hope that helps. You've gotten much farther than me - I'm still trying to figure out how to capture camera images using the SDK for a personal photo application. I couldn't find any mention of it in the UIImage Class Reference. Do you know where I might find docs on how to do it?
Thanks

Similar Messages

  • I have an Air running Mountain Lion. I also have a digital point-and-shoot camera, but have never downloaded any images from the camera to this Air. If I connect the camera to the Air, what might I expect? Will connecting the camera to the Air by a cable

    I have an 11" Air with lots of remaining capacity running Mountain Lion. I also have a digital point-and-shoot camera. I have never downloaded images from the camera to this Air. However, if I just connect the camera to the Air's USB port, with the camera's available cable, and the Air is open, will a program like ImageCapture or iPhoto, auomatically come up, and I can begin to download wanted images? Or, will this sort of connection delete or fry everything on the Air? Do I need any other software on board? Will current Apple onboard programs allow me to download images from my camera and not destroy everything else?

    Answered. Thanks.

  • How to view tagged images from the camera in Lightroom?

    How do I see a tagged image from the camera (tagged using the lock button, to remind me of a image I want to find quickly) once imported into Lightroom? This is possible to do in Photomechanic, as I can see all of the tagged images from the camera once opened in Photomechanic. Yet so far I have not found a way to allow me to do this in Lightroom so far. Any solutions welcome please.

    There isn't a way to do it that is part of Lightroom. There is a plug-in that might help you, though. Check it out here: Locktastic
    It doesn't say if its compatible with LR4, but you can try it to find out.
    Plug-ins aren't usually as efficient as built-in functionality (like PM), but it might be a solution for you.

  • I am downloading from a Canon 650D to Photoshop CS5.1 AND Adobe Bridge CS5.1  do i need to download a  DNG convertor? if so how do i get the images from the camera to the convertor?

    I am downloading from a Canon 650d  TO Photoshop CS5.1  and Adobe Bridge CS5.1  Do i need to download a DNG convertor? if so how do i get the images from the camera to the convertor?

    Please check the list yourself and co,mare the necessary CR version with the one your version of Photoshop utilizes. 
    If the version os higher than yours you can use the free DNG Converter – as to how to use it please read up on that.
    Camera Raw plug-in | Supported cameras

  • HT4101 I discovered a fatal flaw in the iPad procedure for downloading images from camera to iPad: after selecting the images to be downloaded, an accidental touch of the "delete" button, wipes all selected images from the camera, with no warning?

    After downloading some 60 images from camera to iPad, I was "scrolling" down to select the last images, and inadvertently touched the "Delete" button that appears at the top right of the screen, when the "Select" option is chosen. I did not notice the warning "Delete 60 Images?", and continued scrolling down, when my finger touched the warning message. All my precious images were instantly deleted from the camera The sensitive touch screen feature makes this a real problem. Apple should "fix" this unacceptable feature, surely! I suggest that the images on the camera memory card should not be able to be deleted from the iPad, and this shpuld require to be done using the camera controls only. Similarly, the "Delete" or "Keep" options that appear after importing a selection from the camera, should NOT allow the images on rthe camera to be deleted, but only the imported (downloaded) images on the iPad. This unnecessary option could easily delete precious images from the camera!
    Apple should remove the option to delete images from the camera, and the iPad touch screen commands should olny delete images on the iPad. (Alternatively, the "delete option should be on a separatly accessed "page".)
    Surely enough users of the "Lightning to USB Camera Adapter" will agree with the above?

    No, I don't agree. Whenever you connect a camera to a computer you are given the opportunity to delete the photos on the camera after downloading in precisely the same way the iPad does this. The fact that you touched Delete and then ignored the Warning doesn't change anything.
    I've loaded thousands of photos on my IPad and never have had that problem.
    Don't blame a moment of carelessness on your device.
    If you want to make such a suggestion to Apple use http://apple.com/feedback

  • Does iPhone Packager CS 5.5 support camera access and LOADING images from the camera roll?

    Flash CS 5 only supports SAVING to the camera roll, not loading image from it. And it has no access to the camera to take pictures and access the image within the app.
    Does Flash CS 5.5 do these things? There's no point in upgrading if it doesn't support these core feature that I need.

    Hi.
    Just got an app  rejected because the popover to select the pics from the camera roll on  the iPad always appears on to-left corner, and the arrow doesn't point  anywere, and should be pointing to the button which activated it. That  "does not comply with the Apple iOS Human Interface Guidelines, as  required...". On the iPhone there's no issue because it takes over the  whole screen. More from the apple rejection message:
    "Specifically,  we noticed your app contained popover elements that didn't  point to  the element that revealed them. To avoid user confusion, a  popover  element's arrow should point to the element that revealed it."
    So, thanks for including the CameraRoll functionality, but it will be useless in the iPad apparently
    Any workaround to make it appear at a specific place when calling myCameraRoll.browseForImage() ?
    Fernando

  • Is there an app that lets me delete all images from the camera roll at once?

    It is unbelievably ******** that apple doesn't offer an intuitive way of selecting all photos in the camera roll to facilitate deleting them. Is there an app that provides this funtionality?
    Think about how common the task of deleting images can be... I take multiple pictures of a moment, object, scene etc because I know the focus will be wrong on a few and the colors or lighting will be different even for photos taken consecutively within a short period of time (because of differences in how the camera is held and other constantly changing variables.) I only want to keep one of the many photos I take and don't want to waste storage on the other bad pictures. Additionally I would prefer to not have them lingering around such that they can be forgotten and then inadvertantly shared or whatever.
    If Apple won't do the right thing and add this functionality then I assume someone else has written an app and fixed it for them...so is my intution correct? And if so what is the name of this app?

    The iPhoto app provides the capability to delete all the photos in the Camera Roll.
    See https://itunes.apple.com/us/app/iphoto/id497786065?mt=8

  • I got a new iphone and saved my photos from the old phone on icloud. I entered my info on the new phone, but the pictures have been loading for days on my new phone and nothing is happening. Please help!!

    I have over 900 photos for three years that I am unable to access. Is there a way to get photos from Icloud to my computer without using my phone as well??

    Hello lynxfan12,
    Thanks for using Apple Support Communities.
    When you say that you saved your photos to iCloud, are you referring to doing an iCloud backup?  If you are attempting to recover from an iCloud backup over Wi-Fi, the process can take a long time to complete.
    The restore process is taking a long time to finish.
    The amount of time needed by the restore process depends on your geographical location and the speed of your Internet connection. Even with a fast Internet connection, the restore process might take 1 to 4 hours per gigabyte to complete.
    If you're traveling between countries, the restore process might take longer than usual. iCloud is tuned to provide the best service when you're in the geographical location from which you most frequently connect to the Internet. When restoring from an iCloud backup, iCloud is tuned to provide the best service in the geographical region you were in when you created the backup.
    If you need help restoring an iCloud backup
    http://support.apple.com/kb/TS4036
    Take care,
    Alex H.

  • Images from the camera

    Where on my desktop can I find the images I took without emailing them to myself?
    Solved!
    Go to Solution.

    For one, I would advise you to get a Media Card quickly, or you will suffer from low device memory issues.
    You need to download and install Desktop Manager with the Media Manager software.
    Download Desktop Manager from here:
    https://www.blackberry.com/Downloads/entry.do?code=A8BAA56554F96369AB93E4F3BB068C22
    1. If any post helps you please click the below the post(s) that helped you.
    2. Please resolve your thread by marking the post "Solution?" which solved it for you!
    3. Install free BlackBerry Protect today for backups of contacts and data.
    4. Guide to Unlocking your BlackBerry & Unlock Codes
    Join our BBM Channels (Beta)
    BlackBerry Support Forums Channel
    PIN: C0001B7B4   Display/Scan Bar Code
    Knowledge Base Updates
    PIN: C0005A9AA   Display/Scan Bar Code

  • Photo images from dig. cam [one is error and other won't open] questions

    My wife inserted the sd card in the card reader and copied about 70 photo image files to the Mac. The camera that took all the 70 photos was a Panasonic DMC-LZ5 but I don't think the camera model matters much here.
    For the first time, 2 of the many images seem to be corrupt. Mac X reports one photo image has an error while trying to open and reports the second image won't open.
    My main concern is whether or not to just delete the two error/corrupt jpg images. My other main concern is that I don't want to keep the two images if it could affect or corrupt my hd or Mac system in some way.
    I normally just trash corrupted files; however, in this case I went ahead and attempted to open both of the 2 troubled files myself later and they both opened up in Preview and didn't report any error or corruption. However, one of the jpg images defintely is corrupt when viewing it as the bottom of the image is definitely messed up. However, the other image now opens perfectly and looks fine to the eye as if nothing is wrong with it.
    Here is a link to the one photo image that isn't quite right [note the obvious distortion at bottom of image]. Link is http://mysite.verizon.net/vzenvo78/question595.jpg
    Further very relevant information: The SanDisk sd card that all the 70 images were on is a 1 gig card and the sd card seems to be a total loss. The sd card can't be initialized/formatted by disk utility and furthermore the sd card is no longer recognized by the Panasonic camera - the Panasonic camera won't even preview the images off the card or allow me to format the card even from the camera.

    Hello,
    I see what you are talking about. I just discovered this same exact problem on a friends G5 after he uploaded pics from his Leica.
    This is what I did: I ran Disk Utility from the system restore disc to verify and repair the drive. DU reported Volume Bitmap problems. DU was able to repair the disc. Next, I created a new user account and tried uploading the images from the camera to the G5 and it worked just fine. The images loaded like they should.
    I also reinstalled the drivers that came with the camera.
    Delete any files that your Mac reports as a problem. It's just not worth leaving them on the drive.
    So...... run Disk Utility from your system restore disc. If it reports errors, hopefully DU can repair them. If not, one option is to get DiskWarrior here:
    www.alsoft.com or TechToolPro4 here: www.micromat.com
    One other idea is how old is the card?
    Next idea is to create a new user acccount: System Prefs/Accounts. Try using that account to upload the same images. See if they upload as they should. If they do, then the issue isn't system wide, it's just in the other user account.
    Remember to always back up your images/audio/data often as you never know when you might need to do either an Archive or Erase and Reinstall.
    Carolyn

  • After downloading from the camera can I delete from the camera?

    I'm using Bridge CS3 to download images from my Canon XTi Digital Rebel. After download I would like to delete the image from the camera's storage disk.
    I would like NOT to have to run the Canon's EOS utility to do this and would prefer doing it from within Bridge. But I can't find information regarding how to do this.
    Using IMAC Leopard with SP.
    Thanks,

    This excerpt is from a long-gone post by the late, lamented author Bruce Fraser:
    Bruce Fraser - 4:17pm Jun 14, 04 PST (#5 of 21)
    Opening files directly from the camera is a bad idea for a variety of reasons*, and it most certainly isn't faster than using a FireWire or USB2 card reader.
             Drains the camera battery
             Runs the risk of the software you're using to open the images writing to the card and destroying the format
             Runs a small but significant risk of USB power frying the camera
             Slowest method known to mankind of getting images off a CF or SD card

  • My iphone 4s suddenly displays images from Yahoo, Google, and Flickr at low resolution. The camera on my phone works fine, but any web related photo content is now pixelated and low res, what's the deal?

    My iphone 4s suddenly displays images from Yahoo, Google, and Flickr at a low resolution. I have IOS 7.0.4. My phone camera works fine, but any web based photo content from Safari, Yahoo images, Google images, and Flickr all come in pixelated and low res. What's the deal?

    It happened to me but later I figured out that cellular signal was not that great and so the Internet was very slow. It took me about 2 minutes to get the full resolution picuture on either of the app you've described. Try to get faster internet either by wifi or good signal and then check.

  • How can I get all photos from the camera roll onto the photo stream so they will share between iphone and ipad?

    How can I get all photos from the camera roll, and all new pictures taken, to get on the photostream so they can share between iphone and ipad?

    When turning PhotoStream on with photos available in the Camera Roll, only photos captured by the iPhone or saved on the iPhone are placed in the PhotoStream.
    For all photos that were in the Camera Roll prior to turning PhotoStream on, import the photos with your computer and add the photos to your PhotoStream on your computer.

  • My iPhone 4 is unable to upload photos from the camera roll onto facebook. Keep getting the message "unable to upload now"

    My iPhone 4 is unable to upload photos from the camera roll onto facebook. I keep getting the message "unable to upload now, try later"

    I suffer same.  AppleCare can't seem to solve the problem.  I did a restore from backup. Then I did a restore as new phone (virgin). Then I did a restore as a new device and then backed up from a stored backup (which does not replace media).  To no avail.  Some days it works fine, and on others it's extremely bothersome. The major symptoms:
    1. It can take 5+ seconds to delete a photo.
    2. It can take 10+ seconds for the camera app to activate. In many instances, the moment is long gone.
    3. Switching from camera to video can take 5+ seconds.
    4. Saving a photo that's been optimized in iOS 5 can take 30 seconds. Absurd.
    Note that Photos and Camera aren't the only affected applications. What'sApp can have the same issues on occasion. Voice Memos don't respond like they should, either.  I suspect that there's some behind-the-scenes operations with network feed to which iOS gives its full attention (contrary to the UX getting full attention is is historically the case). This makes the user interface painfully slow at times — and, as most of us here would agree — painfully annoying.  This might have to do with changes designed around iCloud, but I'm not even (yet) using it.
    The bottom line is that what used to be a quick, pretty good phone camera is now totally lackluster and unreliable for fast shots.  Sometimes I think Apple spends too much time worrying about form and not enough about function.

  • I have just went to the Apple Retail Store and purchased an HDMI adapter that plugs into the bottom of my iPhone 4. When I asked the sales person if I could watch the videos and pictures from the camera roll I have taken on a T.V. he said I could.

      I have tried to watch the videos and see the pictures from my iPhone's camera roll on a televison but it is not working. It is like nothing is connected to the T.V. set. I have tried with cables that attach to the bottom of the iPone. I have used an HDMI cable and a component cables on two seperate Televisions. How is it supposed to work.
    I plugged the HDMI cable into the HDMI #4 jack into the T.V. and turned on the iPHone and watched the camera roll on the iPhone bu tnothing appears on the T.V. screen. What would have to be adjusted to view the pictures from the camera roll on the T.V. screen. The same thing happend when I used "Composite to iPhone" cables to a different T.V.  I even tried with and iPhone 3GS, still no display on the T.V. screen.

    Warranty on iPhone is not international, but valid only in country of
    original sale. Since you purchased the iPhone in Australia, your warranty
    is valid only in Australia. You must either personally return the iPhone
    to Australia for evaluation and possible replacement or sent it to someone
    in Australia to take into Apple for the evaluation. Apple will not accept
    international shipments for repair nor will Apple ship out of the country
    after replacement.
    Sorry to be the bearer of this news, but it is the way iPhone warranty and
    replacement has always worked.

Maybe you are looking for

  • Please Help! - MBP freezing after EFI 2.2 firmware update

    Hey guys. I'm hoping someone understands whats happening with my 2011 13" MBP (corei5, 4gb ram, 750 gig HDD) I updated the computer with EFI Firmware 2.2 and the most recent security update a few days ago. My computer will boot to my username fine. I

  • Deleting an item deletes entire page in Pages Document

    I have a 2 page brochure I am working on. It contains several shapes, pictures, and text areas. There is a shape on the first page that I want to remove. When I select it and press the delete key the selected shape along with the entire second page o

  • 5800. GPS getting right and left wrong

    Bizarre as this these seem  my Nokia 5800 Music express GPS  has on occasions told me to turn left when it means right and the map is showing right turn and visa versa. Has anyone else that this problem and is there any fix?

  • New response files for Beta 3 RC and Production release - Official ones

    ** Response file to perform silent install of Oracle Database 10g Express Edition ** ** Values for the following variables are configurable: ** ** szDir - Provide a valid path ** ** TNSPort - Provide any valid available port number ** ** MTSPort - Pr

  • Field status group in

    I understand that G067 represents reconciliation accounts in FS00 T.Code in credit/bank/interest field, but why is it needed for vendor having a reconcilliation Account Regards Dev