Convert iPhone photo to JPG before upload to server?

The issue I'm having is that I'm trying to have the user upload a photo from their iPhone to my server. However, I don't want their raw, large file size photo. Is there a way I can encode the photo to a smaller quality JPG before the user uploads it?

Colin, thank you so much for the speedy reply! After a little tinkering I got it to work (see below)! Colin, do you have any suggestions as to the best way to tackle photo orientation?
=================================================================================
                    // onMediaLoaded
                    // =================================================================================
                    function onMediaLoaded( event:Event ):void
                              mainScreen.feedbackText.text +=  "Image Loaded.";
                              imageB = imageLoader.content as Bitmap;
                              readMediaData();
  =================================================================================
                    // readMediaData
                    // =================================================================================
                    function readMediaData():void
                              mainScreen.feedbackText.text +=  "Reading Image Data.";
                              var imageBD:BitmapData = imageB.bitmapData;
                              var byteArray:ByteArray = new ByteArray();
imageBD.encode(new Rectangle(0,0,imageBD.width, imageBD.height), new JPEGEncoderOptions(25), byteArray);
Also, add this to the imageSelected function:
            imageLoader = new Loader();
            imageLoader.contentLoaderInfo.addEventListener( Event.COMPLETE, onMediaLoaded );
            imageLoader.addEventListener( IOErrorEvent.IO_ERROR, mediaError );
            imageLoader.loadFilePromise( imagePromise );

Similar Messages

  • How can I erase a photo album that was uploaded from an old computer that I don't have no more? I have other albums in the Iphone that I don't want to delete.

    How can I erase a photo album that was uploaded from an old computer that I don't have no more? I have other albums in the Iphone that I don't want to delete.

    If you sync with the new computer it will erase the current content from the iphone and replace with the selected content of the new computer.
    The pics that you have taken with the iphone should be imported regularly to your computer as you would with any digital camera.  You can then organize them and sync them back to the iphone if you wish.
    If you have had itunes perform a backup on the new computer, you should get the pics taken with the iphone back, but I would import them before trying anything.

  • When I upload photos from my Canon Rebel 1000D to iphoto the images are labelled JPEG, yet I shoot in RAW.How do I get iphoto 11 vers9.1.3 to not convert the photos to jpeg.

    HI,
    When I upload photos from my Canon Rebel 1000D to iphoto the images are labelled JPEG, yet I shoot in RAW.How do I get iphoto 11 vers9.1.3 to not convert the photos to jpeg. I seem to have tried and read so much but just can't figure it out.  How do I get iphoto 11 vers9.1.3 to not convert the photos to jpeg. Or do a have to use a different system? I have Adobe Bridge. Or can I upload directly into photoshop?
    Also how do you install dmg's properly I am having problems installing them?
    I have a Mac OS X 13 inch Version 10.6.7
    Advice desperately needed
    Thanks
    Nlouis

    Do you have Aperture installed? I found your model on a compatibility list; however, there was a note that it requires Aperture 2 to be installed:
    http://www.apple.com/aperture/specs/raw.html
    According to this excerpt:
    To see a list of digital cameras with RAW-format support that are compatible with iPhoto, visit this Aperture webpage (any camera compatible with Aperture, Apple’s advanced photo editing and management program, is compatible with iPhoto as well)
    which is at the bottom of this page:
    http://docs.info.apple.com/article.html?path=iPhoto/9.0/en/pht41627265.html
    I may be wrong, but I interpret that info to mean you need Aperture 2 before iPhoto will work with RAW?

  • I'm running iCloud on a Windows 7 PC. Photoes have been autmatically uploaded from my iPhone. However, the "Photoes" ICON does not load, and I receive an error message of a problem. Then the ICON disappears. How can I access my photoes?

    I'm running iCloud on a Windows 7 PC. Photoes have been autmatically uploaded from my iPhone. However, the "Photoes" ICON does not load, and I receive an error message of a problem. Then the ICON disappears. How can I access my photoes?

    Same issue here,  previously did work perfectly

  • I uploaded photos in .jpg format to my iPad, but now all of those photos appear as .ithmb files and cannot be opened, even on the thumbdrive they originated from. How do I get them back to .jpgs?

    I uploaded photos in .jpg format to my iPad, but now all of those photos appear as .ithmb files and cannot be opened, even on the thumbdrive they originated from. How do I get them back to .jpgs?

    Sorry, should've mentioned some more information. I synced the ipad to the folder of photos. The original photos had file names like "_MG_4865.jpg" and after syncing the folder in Itunes, all files were now found in a folder called "iPod Photo Cache" which was filled with many folders with labels like "F23" etc. (There were ALOT of photos.) In those folders there are several files with names like "T343.ithmb". Not a .jpg to be found and I can't view any of the photos.

  • HT1933 Good all, is there anyone with problem on the whatsapp 2.11.6 version. It's was crashing on my iPhone. I thought these software was first tested before uploading.

    Good all, is there anyone with problem on the whatsapp 2.11.6 version. It's was crashing on my iPhone. I thought these software was first tested before uploading.

    Looking at the reviews for the current version of the app in the app store it looks like other people are also having problems with it - you could try contacting the developers of the app : http://www.whatsapp.com/contact/

  • Conversion iphone photo's to jpg

    Conversion iphone photo's to jpg

    Statements makes no logical sense.
    Pictures taken with the iPhone are in jpg format.

  • I am trying to download photos from my camera to iphoto on my mac book (which I have done many times before).  This time I am getting an alert that saysThe photo "IMG_5965.JPG" could not be opened, because the original item cannot be found.  Help?

    I am trying to download photos from my camera to iphoto on my mac book (which I have done many times before).  This time I am getting an alert that saysThe photo “IMG_5965.JPG” could not be opened, because the original item cannot be found.  How can I fix this?

    There is a fair likelihood of an explanation of this symptom
    in another ASC discussion thread; see the reply by léonie:
    https://discussions.apple.com/message/20165563#20165563
    You may have to research any newer possibilities in trouble-
    shooting or resolving issues by use of iPhoto Support page.
    Since I don't use iPhoto as a primary editor or storage, the
    details on the topic aren't so good. I prefer ToyViewer editor.
    •iPhoto Support
    •iPhoto Video Tutorials
    Hopefully the error is easily corrected.
    Good luck & happy computing!

  • Uploading Iphone photos to Elements 12

    When I installed Elements 12 awhile back, I noticed it started uploading my iphone photos automatically.  I don't recall making any setting adjustments to make that happen.  Now, I have a new iphone and Elements doesnt upload the iphone photos anymore.  What do I have to do to make that happen.  (I wasn't using revel).

    Hello,
    You can try using an iPhone app like 'Photo Transfer App' to download your photos from your computer to your computer. You can transfer up to 50 pictures at one time using your computer's web browser over wifi so you don't have to use iTunes or any other software.
    Here is a link to the app:
    http://www.phototransferapp.com
    DISCLAIMER: I may receive some form of compensation, financial or otherwise, from my recommendation or link.
    I hope it can be useful to you.
    Best regards.

  • My computer crashed and I have most of my old computer's photos in my iPhone.  How can I upload these photos to my new computer.

    My old computer crashed and I had saved a lot of my photos on my iPhone.  How can I upload mu old computer's photos to the new computer? 

    If they are in the camera roll, you transfer them the same as you would from any other digital camera. If they are not in the camera roll, you restore them to the computer from the backup you made of that. The iPhone is not a backup device.
    You can purchase 3rd party software that will let you extract the photos from the phone, but the photos stored on the phone (other than those in the camera roll) are not stored at full resolution. They are optimized for the iPhone display.

  • How do I convert web archive photos to jpg?

    How do I convert web archive photos into .jpg or .jpeg format?

    Hi,
    Load the webarchive in a Browser, Right click on the Picture, see if Save As... is an option.

  • Icant add videos to iphone through i tunes(converted),music&photos is ok

    I cant add videos to iphone through i tunes(converted),music&photos is ok,i tried dragging and adding option but i cant,,,pls help me

    iPods cannot play DVD files. See here for the video formats supported by iPod classic
    http://www.apple.com/ipodclassic/specs.html

  • Fully updated iphone 5: Photographs haven't uploaded to my photo stream since the 6th of October! What can I do?

    So since I did the last iCloud update 'My Photo Stream' on my laptop has changed to iCloud Photos with two subfolders one titled 'My Photo Stream' which is empty and the other titled 'Photo Stream' which had last updated on the 6th of september.
    I opened my iCloud control panel today and was prompted to repair it though my programmes, after a computer restart the 'Photo Stream' folder has disappeared and I am left with only the empty 'My Photo Stream' folder.
    iCloud photo location is stated as : C:/Users/Catherine/Pictures/Photo Stream.
    On the 'My Photo Stream' album on my iPhone there are 366 photos.
    Photo stream is on under my settings and I am usually connected to a wifi signal.
    Why is it not updating and what can I do to fix it?

    Cathy742,
    I'm having the same issue after updating to iOS7.  All of a sudden my photostream, except the most recent 100, on my iPhone disappeared. (My Camera Roll is fine.)  The photostream stayed intact after I did the same update on my iPad. But only the new ones I've taken with my iPhone are showing up on the iPhone, as well as in the photostream on my iPad.  Now I just did the most recent iOS7.3 update and once again the iPhone photos dropped to my most recent 100.  Now even the pictures I take with the default camera app on my iPhone are not showing up in Photostream!! 
    And, yes, everything has been backed up, and yes, I also backup my photos to my computer using other software. And, yes, WiFi is on on both devices. And, yes, even when they are plugged in to a power outlet with wifi on, photostream does not have all the most recent photos (not even just from today) in it.  
    It's the issue in the PHOTOSTREAM with photos just dropping out that is a nuisance.  And they won't "migrate over" from iPad to match all the photos in the iPad photostream. Only NEW photos turn up on the iPhone. 
    And just today, not even the new ones are all showing up in the photostream from my iPhone camera roll to the photostream on either the iPhone or the iPad. 
    I do not use iPhoto on my MACBookPro for uploads from photostream, because I use other software to store the pics. 
    It's happened now twice that photos have disappeared from photostream.  Can anyone offer any wisdom?

  • My iphone photos will not upload into iphoto?

    When I try to upload my iphone photos into my iphoto it will load the photos but will not let me import the photos. I have tried several times and even let it sit over night, it seems to stay frozen and will not let me upload them. I need to create more space on my phone but it will not allow me to upload photos on iphoto? What can I do? Is there another program to upload my photos into?

    Try Image Capture (in your Applications Folder)

  • 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.

Maybe you are looking for

  • Windows 8 installation freezes on reboot

    I downloaded bootcamp today and went through it until I got to the part where I partitioned half of my memory to Windows. I then inserted a new Windows 8 disc and it downloaded the partition to it then rebooted the computer. Once it rebooted it began

  • My apple TV is connected and has power but all of a sudden not working

    I bought a new remote. (yes it's the correct one) I tried pairing by following instructions but I did not see the remote symbol on my tv screen.  When I point it at the Apple TV and press the menu button, the light on the Apple TV blinks which tells

  • [F8-AS2] MC code needed to complete game

    Hi, I have a game (stage size 600x350) and a bee that flies randomly left to right then right to left across and off the stage. That part works great but every now and then it flies too high to the top of the stage cutting off part of the movie clip.

  • Changing many queries with a "script"

    A SAP-BI newbee here. I would like to add a characteristic to a cube and have all existing queries filter on this characteristic. Is there a way to create some sort of script to update all queries and automatically insert this filter so that the user

  • Is it possible to selectively block re-explode BOM in Sub-contracting PO ?

    In our business scenario, sometimes we are directly adding PO components in the Sub-contracting PO in addition to the existing components that have come in through BOM. After saving and somedays later when the user goes to edit PO through ME22N, sinc