commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Damjan Jovanovic (JIRA)" <>
Subject [jira] [Commented] (IMAGING-187) Could not read block - when JPG file is saved from TIFF
Date Tue, 04 Oct 2016 23:35:20 GMT


Damjan Jovanovic commented on IMAGING-187:

The file contains a corrupt thumbnail. Reading the metadata attempts to read the thumbnail
by default, causing the exception. It's possible to skip reading the thumbnail and avoid the

        Map<String,Object> params = new TreeMap<>();
        params.put(ImagingConstants.PARAM_KEY_READ_THUMBNAILS, false);
        JpegImageMetadata metadata = (JpegImageMetadata) Imaging.getMetadata(new File("IMG_000-tf.jpg"),

> Could not read block - when JPG file is saved from TIFF
> -------------------------------------------------------
>                 Key: IMAGING-187
>                 URL:
>             Project: Commons Imaging
>          Issue Type: Bug
>    Affects Versions: 1.0
>            Reporter: R.M.
>         Attachments: IMG_000-tf.jpg
> I have got error
> Could not read block (block start: 399047, block length: 6240, data
length: 9926).
> when I try to read EXIF or IPTC metadata (Imaging.getMetadata(file);)
> At first the file was saved in TIFF format. Then it was open and saved to final jpg format.
This error I can see everytime, when I have any JPG saved from TIFF.
> I tried to use PaintShopPro and painting in windows.

This message was sent by Atlassian JIRA

View raw message