Debian Codegraph @

docs/formats/index.rst

raw
1 Supported Formats
2 =================
3
4 .. note::
5 If you just want to know if a specific extension/format is supported
6 you can search this page using ``Ctrl+F`` and then type the name of
7 the extension or format.
8
9 ImageIO reads and writes images by delegating your request to one of many
10 backends. Example backends are pillow, ffmpeg, tifffile among others. Each
11 backend supports its own set of formats, which is how ImageIO manages to support
12 so many of them.
13
14 To help you navigate this format jungle, ImageIO provides various curated lists of formats
15 depending on your use-case
16
17 .. toctree::
18 :maxdepth: 1
19
20 formats_by_plugin
21 video_formats
22
23
24 All Formats
25 -----------
26
27 Below you can find an alphabetically sorted list of *all*
28 extensions/file-formats that ImageIO is aware of. If an extension is listed
29 here, it is supported. If an extension is not listed here, it may still be
30 supported if one of the backends supports the extension/format. If you encounter
31 the latter, please `create a new issue
32 <https://github.com/imageio/imageio/issues>`_ so that we can keep below list up
33 to date and add support for any missing formats.
34
35 Each entry in the list below follows the following format::
36
37 extension (format_name): plugin1 plugin2 ...
38
39 where the plugins refer to imageio plugins that can handle the format. If you
40 wish to use a specific plugin to load a format, you would use the name as
41 specified here. For example, if you have a PNG file that you wish to open with pillow
42 you would call::
43
44 iio.imread("image.png", format="PNG-PIL")
45
46 .. rubric:: Format List
47
48 .. note::
49 To complete this list we are looking for each format's full name and a link
50 to the spec. If you come across this information, please consider sharing it
51 by `creating a new issue <https://github.com/imageio/imageio/issues>`_.
52
53 {% for format in formats %}
54 {% if format.external_link %}
55 - **{{ format.extension }}** (`{{ format.name }} <{{format.external_link}}>`_): {% for name in format.priority %} :mod:`{{name}} <{{plugins[name].module_name}}>` {% endfor %}
56 {% elif format.name %}
57 - **{{ format.extension }}** ({{ format.name }}): {% for name in format.priority %} :mod:`{{name}} <{{plugins[name].module_name}}>` {% endfor %}
58 {% else %}
59 - **{{ format.extension }}**: {% for name in format.priority %} :mod:`{{name}} <{{plugins[name].module_name}}>` {% endfor %}
60 {%endif%}
61 {% endfor %}