commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bruno P. Kinoshita (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (IMAGING-202) java.io.IOException: Could not read block
Date Sat, 30 Dec 2017 09:38:00 GMT

    [ https://issues.apache.org/jira/browse/IMAGING-202?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16306696#comment-16306696
] 

Bruno P. Kinoshita commented on IMAGING-202:
--------------------------------------------

Spent some time reading and learning more about Commons Imaging code, and working on issues
regarding the TIFF format. Have just re-ran jhove, with different command line options, and
found an issue in the validation of the image.

{noformat}
jhove -m tiff-hul  17_H1_MiUSA_ElPaso_ROICOM_1178.tif 
Jhove (Rel. 1.6, 2011-01-04)
 Date: 2017-12-30 22:35:53 NZDT
 RepresentationInformation: 17_H1_MiUSA_ElPaso_ROICOM_1178.tif
  ReportingModule: TIFF-hul, Rel. 1.5 (2007-10-02)
  LastModified: 2017-02-23 17:37:46 NZDT
  Size: 108598491
  Format: TIFF
  Status: Not well-formed
  SignatureMatches:
   TIFF-hul
  ErrorMessage: Value offset not word-aligned: 563
   Offset: 210
  MIMEtype: image/tiff
{noformat}

If you grab a TIFF image from NASA, for instance, from this URL https://photojournal.jpl.nasa.gov/new,
you should be able to run the same command with one of the .tif images as input and get a
clean output, with no ErrorMessage.

> java.io.IOException: Could not read block
> -----------------------------------------
>
>                 Key: IMAGING-202
>                 URL: https://issues.apache.org/jira/browse/IMAGING-202
>             Project: Commons Imaging
>          Issue Type: Bug
>          Components: Format: JPEG, Format: TIFF
>    Affects Versions: 1.0
>            Reporter: Srijan Bhatnagar
>            Priority: Critical
>
> Some images could not be read with imaging. The following exception appears - 
> {code}
> java.io.IOException: Could not read block (block start: 1024, block length: 211680000,
data length: 108598491).
> 	at org.apache.commons.imaging.common.bytesource.ByteSourceInputStream.getBlock(ByteSourceInputStream.java:216)
> 	at org.apache.commons.imaging.formats.tiff.TiffReader.getTiffRawImageData(TiffReader.java:447)
> 	at org.apache.commons.imaging.formats.tiff.TiffReader.readDirectory(TiffReader.java:224)
> 	at org.apache.commons.imaging.formats.tiff.TiffReader.readDirectory(TiffReader.java:122)
> 	at org.apache.commons.imaging.formats.tiff.TiffReader.readDirectories(TiffReader.java:115)
> 	at org.apache.commons.imaging.formats.tiff.TiffReader.read(TiffReader.java:427)
> 	at org.apache.commons.imaging.formats.tiff.TiffReader.readContents(TiffReader.java:419)
> 	at org.apache.commons.imaging.formats.tiff.TiffImageParser.getMetadata(TiffImageParser.java:123)
> 	at org.apache.commons.imaging.ImageParser.getMetadata(ImageParser.java:144)
> 	at com.day.cq.dam.commons.handler.StandardImageHandler.extractMetadata(StandardImageHandler.java:385)
> 	at com.day.cq.dam.commons.handler.StandardImageHandler.extractMetadata(StandardImageHandler.java:201)
> 	at com.day.cq.dam.core.process.MetadataExtractor.extractMetadata(MetadataExtractor.java:82)
> 	at com.day.cq.dam.core.process.MetadataProcessorProcess.execute(MetadataProcessorProcess.java:121)
> 	at com.day.cq.workflow.compatibility.CQWorkflowProcessRunner.execute(CQWorkflowProcessRunner.java:93)
> 	at com.adobe.granite.workflow.core.job.HandlerBase.executeProcess(HandlerBase.java:189)
> 	at com.adobe.granite.workflow.core.job.JobHandler.process(JobHandler.java:244)
> 	at org.apache.sling.event.impl.jobs.JobConsumerManager$JobConsumerWrapper.process(JobConsumerManager.java:500)
> 	at org.apache.sling.event.impl.jobs.queues.JobQueueImpl.startJob(JobQueueImpl.java:291)
> 	at org.apache.sling.event.impl.jobs.queues.JobQueueImpl.access$100(JobQueueImpl.java:58)
> 	at org.apache.sling.event.impl.jobs.queues.JobQueueImpl$1.run(JobQueueImpl.java:227)
> 	at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
> 	at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
> 	at java.lang.Thread.run(Unknown Source)
> {code}
> The zipped TIF file can be downloaded from - https://files.acrobat.com/a/preview/9ac91668-221f-479a-a45b-c5f685b9c021




--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Mime
View raw message