Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What are the supported image file formats for display on the iPhone?

Tags:

iphone

I have an image in .jpg format. Is that readable within an iPhone application? What are all of the image file extensions that can be loaded natively within an iPhone application?

like image 263
user174761 Avatar asked Aug 04 '10 10:08

user174761


People also ask

What image format do iPhones use?

All new photos and videos will now use JPEG or H. 264 format. To return to using the space-saving HEIF and HEVC formats, choose High Efficiency.

What formats does Apple photos support?

Helpful answers. At least jpg, tif and png.

Are iPhone pictures JPEG or PNG?

By default, iPhones save camera photos in Apple's compressed HEIC file format and not JPEG. Here's how to change that setting so your pictures load properly on non-Apple devices.


2 Answers

I think many images file extension is readable in iPhone. Just name a few : jpg, jpeg, png

Here is the full list:

Format | Filename extensions

  • Tagged Image File Format (TIFF)

  • Joint Photographic Experts Group (JPEG)

  • Graphic Interchange Format (GIF)

  • Portable Network Graphic (PNG)

  • Windows Bitmap Format (DIB)

  • Windows Icon Format (.ico)

  • Windows Cursor (.cur)

  • XWindow bitmap (.xbm)

A list is from here

like image 182
vodkhang Avatar answered Nov 15 '22 18:11

vodkhang


https://developer.apple.com/library/content/documentation/2DDrawing/Conceptual/DrawingPrintingiOS/LoadingImages/LoadingImages.html#//apple_ref/doc/uid/TP40010156-CH17-SW7

see Supported Image Formats

Doc says that:

Generally, the image formats that UIKit supports are the same formats supported by the Image I/O framework.

And in I/O Framework docs said that:

The Image I/O framework understands most of the common image file formats, such as JPEG, JPEG2000, RAW, TIFF, BMP, and PNG. Not all formats are supported on each platform. For the most up-to-date list of what Image I/O supports, you can call the these functions:

CGImageSourceCopyTypeIdentifiers returns an array of the Uniform Type Identifiers (UTIs) that Image I/O supports as image sources.

CGImageDestinationCopyTypeIdentifiers returns an array of the uniform type identifiers (UTIs) that Image I/O supports as image destinations.

like image 29
jamapag Avatar answered Nov 15 '22 16:11

jamapag