.. _3199117a-c878-44e7-b7ba-d42a577301b9: ==================================================== File does not begin with SPIFF, Exif or JFIF segment ==================================================== .. contents:: :depth: 2 -------------- Classification -------------- .. list-table:: :align: center * - **Validator** - **Validator version** - **Error message type** * - jhove - - .. list-table:: :align: center * - **File format** - **Version** - **Specification** - **Description** - **Location** * - image/jpeg - - `JPEG `__ - No file locations. - :ref:`corpus ` -------- Analyses -------- Analysis ======== Is it a bug in the validating software? - no ------------------ Possible solutions ------------------ .. contents:: :local: Remake image with ImageMagick ============================= The suggestion ~~~~~~~~~~~~~~ If the bits are not completely missing, use ImageMagick. If the bits are missing JHOVE reports 'Expected marker byte 255 ' from JPEG-HUL and in that case 4 bytes can be added starting from position 7 in the file. Otherwise, the file more thoroughly corrupted. Execution ~~~~~~~~~~~~~~~~~ ``convert `` Tested with: Effects ~~~~~~~ Justification ~~~~~~~~~~~~~ Migrated files ~~~~~~~~~~~~~~ No suggestion determined. All solutions are listed for browsing :ref:`in here `. -------------- Output example -------------- :: 2023-01-25T14:01:57+02:00 JPEG-hul 2017-05-24T04:07:12+03:00 10027824 JPEG Well-Formed, but not valid File does not begin with SPIFF, Exif or JFIF segment image/jpeg Adobe JPEG JPEGMetadata CompressionType Huffman coding, Baseline DCT Images Number 1 Image NisoImageMetadata JHOVE image/jpeg big endian JPEG 2336 3504 YCbCr 8 8 8 integer 3 PixelAspectRatio PixelAspectRatioX 0 PixelAspectRatioY 0 RestartInterval 292 Scans 1 QuantizationTables QuantizationTable Precision 8-bit DestinationIdentifier 0 ApplicationSegments APP14 ------------------ Notes on the error ------------------ The example output is formatted with xmllint. ------------------------------ Related errors by source files ------------------------------ :: jhove: File does not begin with SPIFF, Exif or JFIF segment python image library: SyntaxError: not a TIFF file (header b'Exif\x00aII' not valid) Notice: any operation suggested on this page should be carefully considered before use, as this article is in continuous development. Data is available at https://github.com/Digital-Preservation-Finland/knowledge-base.