 |
 |
|
 |
01-21-2010, 07:09 PM
|
#1 (permalink)
|
|
Registered Member
Join Date: Jan 2009
Location: Silicon Valley, USA
Posts: 500
|
Image Sent from App 4x LARGER than Camera Roll
I have an app that combines a graphic with a photo from the built-in camera to create a single composite image. I'm using UIImageJPEGRepresentation and setting the dimensions to 600 x 800 for the final image. After saving the image to the camera roll, users have the option of using MailComposer to send it somewhere.
The image saved to the Photos App Camera Roll is:
591 x 800, 106 KB jpg.
Using MailComposer to email the image from within the app:
600 x 800, 438 KB jpg.
It should be the same image! Why is the photo in the camera roll 591 instead of 600? Why is the photo sent from the MailComposer 4x as large?!
I'd really appreciate if someone can shed light on this. I've tried a couple different implementations and get the same result.
|
|
|
01-21-2010, 08:29 PM
|
#2 (permalink)
|
|
Registered Member
Join Date: Jan 2009
Location: Silicon Valley, USA
Posts: 500
|
UIImageWriteToSavedPhotosAlbum Compression
Does anyone know what compression level UIImageWriteToSavedPhotosAlbum uses for a JPEG saved to the camera roll? I've looked in the docs and forums, but can not find it listed. I assumed it was 1.0, but if it's not it would explain the difference in file size (KB).
Still don't understand the dimension 591 vs. 600 difference.
|
|
|
01-22-2010, 12:12 PM
|
#3 (permalink)
|
|
Registered Member
Join Date: Jan 2009
Location: Silicon Valley, USA
Posts: 500
|
Quote:
Originally Posted by DenVog
Does anyone know what compression level UIImageWriteToSavedPhotosAlbum uses for a JPEG saved to the camera roll?
|
I've not been able to find an official answer to this, but through trial and error my file sizes end up very close to the same if I use .7 for the UIImageJPEGRepresentation compressionQuality setting.
I've exhausted my troubleshooting to understand why the camera roll photo saves at 591x800 instead of 600x800. Any suggestions would be very much appreciated.
|
|
|
 |
| Thread Tools |
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|
» Advertisements |
» Online Users: 471 |
| 45 members and 426 guests |
| beginer2007, belliott, Bitzal, cordoprod, CunningCat, DanielNovy, DaveHolzer, davidloew, dre, ebohdas, FlukeDude, harrytheshark, healthyutech, hobbyCoder, howcr, IphoneSdk, isley, jbullfrog, JonnyBGoode, Juliaan, Kalimba, kieran12, lukeca, melmoup, MiniRobinho, mJusticz, Mopedhead, mrarick, mriphoneman, nDev1, norskben, paul84, psilocybin, rahulskh, Robyn, ronm3xico, ryguy2503, scleland, Straathond, swissmade, tidyguy, tpuser, upperhouse, vikinara, zackattack |
| Most users ever online was 779, 05-11-2009 at 09:55 AM. |
» Stats |
Members: 23,966
Threads: 38,751
Posts: 170,022
Top Poster: smasher (2,560)
|
| Welcome to our newest member, cruisetom |
|