iphone - UIImage memory usage with png and jpg -


I have two files in the document directory of the same image taken with the camera using a UIImagePNG rendering and other UIImageJPEG representation Was saved. In other words, there is a PGG and the other is a JPG.

Now, using the device with a real device. If I load PNG (initWithContentOfFile :), then 'Real Memory' runs from 2.34 MB to 2.43 MB. But if I load the jpeg instead, then the memory goes from 2.34 MB to 23 MB !!!

Could? >

This is probably capable of mapping the memory used directly in storage for PNG file, while it has no qualification to do with JPG, which should be decoded.

If you think about it, then a 1600x1200 image from the iPhone camera, 23 MB is very realistic .0 9 MB There is not enough room to keep the data for an image.


Comments

Popular posts from this blog

c# - How to capture HTTP packet with SharpPcap -

php - Multiple Select with Explode: only returns the word "Array" -

jquery - SimpleModal Confirm fails to submit form -