# Copyright (C) 2001-2018, Python Software Foundation # For licence information, see README file. # msgid "" msgstr "" "Project-Id-Version: Python 3\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2022-05-22 23:13+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: FRENCH \n" "Language: fr\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" #: library/imghdr.rst:2 msgid ":mod:`imghdr` --- Determine the type of an image" msgstr "" #: library/imghdr.rst:8 msgid "**Source code:** :source:`Lib/imghdr.py`" msgstr "**Code source :** :source:`Lib/imghdr.py`" #: library/imghdr.rst:13 msgid "" "The :mod:`imghdr` module is deprecated (see :pep:`PEP 594 <594#imghdr>` for " "details and alternatives)." msgstr "" #: library/imghdr.rst:16 msgid "" "The :mod:`imghdr` module determines the type of image contained in a file or " "byte stream." msgstr "" #: library/imghdr.rst:19 #, fuzzy msgid "The :mod:`imghdr` module defines the following function:" msgstr "Le module :mod:`nis` définit les instructions suivantes :" #: library/imghdr.rst:24 msgid "" "Tests the image data contained in the file named by *file*, and returns a " "string describing the image type. If optional *h* is provided, the *file* " "argument is ignored and *h* is assumed to contain the byte stream to test." msgstr "" #: library/imghdr.rst:28 msgid "Accepts a :term:`path-like object`." msgstr "Accepte un :term:`path-like object`." #: library/imghdr.rst:31 msgid "" "The following image types are recognized, as listed below with the return " "value from :func:`what`:" msgstr "" #: library/imghdr.rst:35 msgid "Value" msgstr "Valeur" #: library/imghdr.rst:35 msgid "Image format" msgstr "" #: library/imghdr.rst:37 msgid "``'rgb'``" msgstr "``'rgb'``" #: library/imghdr.rst:37 msgid "SGI ImgLib Files" msgstr "" #: library/imghdr.rst:39 msgid "``'gif'``" msgstr "``'gif'``" #: library/imghdr.rst:39 msgid "GIF 87a and 89a Files" msgstr "" #: library/imghdr.rst:41 msgid "``'pbm'``" msgstr "``'pbm'``" #: library/imghdr.rst:41 msgid "Portable Bitmap Files" msgstr "" #: library/imghdr.rst:43 msgid "``'pgm'``" msgstr "``'pgm'``" #: library/imghdr.rst:43 msgid "Portable Graymap Files" msgstr "" #: library/imghdr.rst:45 msgid "``'ppm'``" msgstr "``'ppm'``" #: library/imghdr.rst:45 msgid "Portable Pixmap Files" msgstr "" #: library/imghdr.rst:47 msgid "``'tiff'``" msgstr "``'tiff'``" #: library/imghdr.rst:47 msgid "TIFF Files" msgstr "" #: library/imghdr.rst:49 msgid "``'rast'``" msgstr "``'rast'``" #: library/imghdr.rst:49 msgid "Sun Raster Files" msgstr "" #: library/imghdr.rst:51 msgid "``'xbm'``" msgstr "``'xbm'``" #: library/imghdr.rst:51 msgid "X Bitmap Files" msgstr "" #: library/imghdr.rst:53 msgid "``'jpeg'``" msgstr "``'jpeg'``" #: library/imghdr.rst:53 msgid "JPEG data in JFIF or Exif formats" msgstr "" #: library/imghdr.rst:55 msgid "``'bmp'``" msgstr "``'bmp'``" #: library/imghdr.rst:55 msgid "BMP files" msgstr "" #: library/imghdr.rst:57 msgid "``'png'``" msgstr "``'png'``" #: library/imghdr.rst:57 msgid "Portable Network Graphics" msgstr "" #: library/imghdr.rst:59 msgid "``'webp'``" msgstr "``'webp'``" #: library/imghdr.rst:59 msgid "WebP files" msgstr "" #: library/imghdr.rst:61 msgid "``'exr'``" msgstr "``'exr'``" #: library/imghdr.rst:61 msgid "OpenEXR Files" msgstr "" #: library/imghdr.rst:64 msgid "The *exr* and *webp* formats were added." msgstr "" #: library/imghdr.rst:68 msgid "" "You can extend the list of file types :mod:`imghdr` can recognize by " "appending to this variable:" msgstr "" #: library/imghdr.rst:74 msgid "" "A list of functions performing the individual tests. Each function takes " "two arguments: the byte-stream and an open file-like object. When :func:" "`what` is called with a byte-stream, the file-like object will be ``None``." msgstr "" #: library/imghdr.rst:78 msgid "" "The test function should return a string describing the image type if the " "test succeeded, or ``None`` if it failed." msgstr "" #: library/imghdr.rst:81 msgid "Example::" msgstr "Exemple ::"