I want to display a thumbnail image in a cell of table view controller,this thumbnail image is located at some remote place(URL of address is in XML file) so which format of image is cost effective?
thanks in advance.
I want to display a thumbnail image in a cell of table view controller,this thumbnail image is located at some remote place(URL of address is in XML file) so which format of image is cost effective?
thanks in advance.
Create a sample thumbnail, convert it to PNG, GIF and JPEG, and see which is smaller.
Sometimes measuring is easier than guessing.
It's mostly the same as on the Web, really. For graphics, PNG is generally more efficient; for photos, you'll want to pick JPEG.
I'm not sure whether the iPhone supports JPEG 2000 (OS X does), so that may be a more efficient options for photos.
Also consider tools such as optipng
and jpegtran
to shed some additional kilobytes off your image data.
@Soren, Pretty sure JPEG 2000 is not supported on the iPhone, in fact PDFs with jpeg2000 compressed images cause the viewing app to crash.
The recommendation for images in a UITableView is PNG, this has the best rendering performance.