Supported Formats¶
Note
If you just want to know if a specific extension/format is supported
you can search this page using Ctrl+F
and then type the name of
the extension or format.
ImageIO reads and writes images by deligating your request to one of many backends. Example backends are pillow, ffmpeg, tifffile among others. Each backend supports its own set of formats, which is how ImageIO manages to support so many of them.
To help you navigate this format jungle, ImageIO provides various curated lists of formats depending on your use-case
All Formats¶
Below you can find an alphabetically sorted list of all extensions/file-formats that ImageIO is aware of. If an extension is listed here, it is supported. If an extension is not listed here, it may still be supported if one of the backends supports the extension/format. If you encoutner the latter, please create a new issue so that we can keep below list up to date and add support for any missing formats.
Each entry in the list below follows the following format:
extension (format_name): plugin1 plugin2 ...
where the plugins refer to imageio plugins that can handle the format. If you wish to use a specific plugin to load a format, you would use the name as specified here. For example, if you have a PNG file that you wish to open with pillow you would call:
iio.imread("image.png", format="PNG-PIL")
Format List
Note
To complete this list we are looking for each format’s full name and a link to the spec. If you come across this information, please consider sharing it by creating a new issue.
.3fr (Hasselblad raw):
RAW-FI
.MCIDAS (McIdas area file):
pillow
MCIDAS-PIL
.SPIDER:
pillow
SPIDER-PIL
.XVTHUMB (Thumbnail Image):
pillow
XVTHUMB-PIL
.arw (Sony alpha):
RAW-FI
.avi (Audio Video Interleave):
FFMPEG
.bay (Casio raw format):
RAW-FI
.bmq (Re-Volt mipmap):
RAW-FI
.bsdf (Binary Structured Data Format):
BSDF
.bufr (Binary Universal Form for the Representation of meteorological data):
pillow
BUFR-PIL
.cap (Scirra Construct):
RAW-FI
.cine (AMETEK High Speed Camera Format):
RAW-FI
.cr2:
RAW-FI
.crw:
RAW-FI
.cs1:
RAW-FI
.ct (Computerized Tomography):
DICOM
.cut (Dr. Halo):
CUT-FI
.dc2:
RAW-FI
.dcr:
RAW-FI
.dicom (DICOM file format):
ITK
.dng:
RAW-FI
.drf:
RAW-FI
.dsc:
RAW-FI
.ecw (Enhanced Compression Wavelet):
GDAL
.erf:
RAW-FI
.exr (ILM OpenEXR):
EXR-FI
.fff:
RAW-FI
.fit (Flexible Image Transport System File):
pillow
FITS-PIL
FITS
.fits (Flexible Image Transport System File):
pillow
FITS-PIL
FITS
.ftc (Independence War 2: Edge Of Chaos Texture Format):
pillow
FTEX-PIL
.fts (Flexible Image Transport System File):
FITS
.ftu (Independence War 2: Edge Of Chaos Texture Format):
pillow
FTEX-PIL
.fz (Flexible Image Transport System File):
FITS
.g3 (Raw fax format CCITT G.3):
G3-FI
.gdcm (Grassroots DICOM):
ITK
.gipl (UMDS GIPL):
ITK
.hdf5 (Hierarchical Data Format 5):
ITK
.hdp (JPEG Extended Range):
JPEG-XR-FI
.ia:
RAW-FI
.iff (ILBM Interleaved Bitmap):
IFF-FI
.iiq:
RAW-FI
.img.gz:
ITK
.ipl (Image Processing Lab):
ITK
.j2c (JPEG 2000):
pillow
J2K-FI
JPEG2000-PIL
.j2k (JPEG 2000):
pillow
J2K-FI
JPEG2000-PIL
.jif (JPEG):
JPEG-FI
.jng (JPEG Network Graphics):
JNG-FI
.jp2 (JPEG 2000):
pillow
JP2-FI
JPEG2000-PIL
.jpc (JPEG 2000):
pillow
JPEG2000-PIL
.jpeg (Joint Photographic Experts Group):
pillow
JPEG-PIL
JPEG-FI
ITK
GDAL
.jpf (JPEG 2000):
pillow
JPEG2000-PIL
.jpg (Joint Photographic Experts Group):
pillow
JPEG-PIL
JPEG-FI
ITK
GDAL
.jpx (JPEG 2000):
pillow
JPEG2000-PIL
.jxr (JPEG Extended Range):
JPEG-XR-FI
.k25:
RAW-FI
.kc2:
RAW-FI
.kdc:
RAW-FI
.koa (C64 Koala Graphics):
KOALA-FI
.lbm (ILBM Interleaved Bitmap):
IFF-FI
.lfp (Lytro F01):
LYTRO-LFP
.lfr (Lytro Illum):
LYTRO-LFR
.mdc:
RAW-FI
.mef:
RAW-FI
.mgh (FreeSurfer File Format):
ITK
.mha (ITK MetaImage):
ITK
.mhd (ITK MetaImage Header):
ITK
.mkv (Matroska Multimedia Container):
FFMPEG
.mnc (Medical Imaging NetCDF):
ITK
.mnc2 (Medical Imaging NetCDF 2):
ITK
.mos (Leaf Raw Image Format):
RAW-FI
.mov (QuickTime File Format):
FFMPEG
.mp4 (MPEG-4 Part 14):
FFMPEG
.mpeg (Moving Picture Experts Group):
FFMPEG
.mpg (Moving Picture Experts Group):
FFMPEG
.mri (Magnetic resonance imaging):
DICOM
.mrw:
RAW-FI
.nef:
RAW-FI
.nhdr:
ITK
.nia:
ITK
.nii:
ITK
.nii.gz (nii.gz):
ITK
.npz (Numpy Array):
NPZ
.nrrd:
ITK
.nrw:
RAW-FI
.orf:
RAW-FI
.pct (Macintosh PICT):
PICT-FI
.pef:
RAW-FI
.pfm:
PFM-FI
.pict (Macintosh PICT):
PICT-FI
.ppm (Portable Pixelmap (ASCII)):
PPM-FI
.ppm (Portable Pixelmap (Raw)):
PPMRAW-FI
.ptx:
RAW-FI
.pxn:
RAW-FI
.qtk:
RAW-FI
.raf:
RAW-FI
.rdc:
RAW-FI
.rw2:
RAW-FI
.rwl:
RAW-FI
.rwz:
RAW-FI
.spe (SPE File Format):
SPE
.sr2:
RAW-FI
.srf:
RAW-FI
.srw:
RAW-FI
.sti:
RAW-FI
.stk:
TIFF
.swf (Shockwave Flash):
SWF
.targa (Truevision TGA):
TARGA-FI
.tif (Tagged Image File):
TIFF
pillow
TIFF-PIL
TIFF-FI
FEI
ITK
GDAL
.tiff (Tagged Image File Format):
TIFF
pillow
TIFF-PIL
TIFF-FI
FEI
ITK
GDAL
.vtk:
ITK
.wap (Wireless Bitmap):
WBMP-FI
.wbm (Wireless Bitmap):
WBMP-FI
.wbmp (Wireless Bitmap):
WBMP-FI
.wdp (JPEG Extended Range):
JPEG-XR-FI
.webm:
FFMPEG
.webp (Google WebP):
WEBP-FI
.wmv (Windows Media Video):
FFMPEG