========================== cannot identify image file ========================== .. contents:: :depth: 2 -------------- Classification -------------- .. list-table:: :align: center * - **Validator** - **Validator version** - **Error message type** * - Pillow - 10.0.1 - .. list-table:: :align: center * - **File format** - **Version** - **Specification** - **Description** - **Location** * - image/png - 1.2 - - - :ref:`corpus ` * - image/x-adobe-dng - 1.4 - - - :ref:`corpus ` * - image/gif - 1989a - - - :ref:`corpus ` * - image/gif - GIF image data 10 x 6 - - - :ref:`corpus ` * - image/tiff - 6.0 - - - :ref:`corpus ` * - image/gif - GIF image data 10 x 6 - - - :ref:`corpus ` * - image/jp2 - (:unap) - - - :ref:`corpus ` * - image/png - 1.2 - - - :ref:`corpus ` -------- Analyses -------- ------------------ Possible solutions ------------------ .. contents:: :local: -------------- Output example -------------- :: Error in analyzing file. cannot identify image file '/corpus/file-scraper/tests/data/image_png/invalid_1.2_no_IHDR.png' ------------------ Notes on the error ------------------ ------------------------------ Related errors by source files ------------------------------ :: ImageMagick: Failed to allocate memory for to read TIFF directory (.* elements of .* bytes each) ImageMagick: IHDR: CRC error ImageMagick: improper image header ImageMagick: Input/output error ImageMagick: negative or zero image size ImageMagick: Stream error while reading JP2 Header box: box length is inconsistent. JHOVE: IFD offset not word-aligned JHOVE: Invalid GIF header JHOVE: Premature EOF JHOVE: Tag .* out of sequence JHOVE: Type mismatch for tag .*; expecting .* or .*, saw JHOVE: Unknown data block type JHOVE: Unknown data type JHOVE: Value offset not word-aligned: jpylyzer: False jpylyzer: False jpylyzer: False jpylyzer: False jpylyzer: False jpylyzer: ignoring unknown box Pillow: cannot identify image file Notice: any operation suggested on this page should be carefully considered before use, as this article is in continuous development.