Reducing Image Memory Consumption in 10 Minutes
summary
Shows how to replace full decoded image buffers with smaller decoded thumbnails using Image I/O thumbnail creation and downsampling, turning a 266 KB JPEG into a 17×80 image buffer that costs ~13.4 MB in RAM and cutting app resident memory from ~69.5 MB to ~56.3 MB (about 13.2 MB saved) per image. Uses UIImage/UIImageView pipeline, CGImageSourceCreateThumbnailAtIndex options, and recommends serial background decoding to avoid thread explosion.
AI-written summary · about
chapters (19)
- 0:00Intro
- 0:30Outline
- 1:15Example
- 1:43iPhone App
- 2:26Buffers
- 3:08Image Buffer
- 3:31Frame Buffer
- 3:58Frame Buffer Changes
- 4:49A Holistic View
- 5:04Decoding
- 6:45Image Dimensions
- 7:48How to Get a Smaller Image Buffer
- 8:00Image IO
- 8:31Rendering Pipeline
- 8:45Code
- 10:27Sample App
- 10:54When to use
- 11:29Further resources
- 11:42Twitter
related talks
19mOptimising image heavy applications
25mThe Life of an Image on iOS
01h 11mMoving Pictures
35mFixing Image Performance for The Worst iPhone
03mDelivering fast and beautiful images and video
25mDelivering Fast and Beautiful Images and Video
36mFast and Beautiful: Modern Image Delivery Techniques
48mFast and Beautiful: Modern Image Delivery Techniques
