Uploaded image for project: 'Commons Imaging'
  1. Commons Imaging
  2. IMAGING-307

Apache Commons imaging AEM Image upload issue - Invalid block size

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Critical
    • Resolution: Unresolved
    • None
    • None
    • Format: JPEG
    • None
    • Important

    Description

      We are trying to upload some assets to AEM DAM which is using the apache commons imaging bundle (version 1.0.0.R1725432-B002) to verify and ingest the assets. Some of the assets are being rejected wit the below error:

       

      20.07.2020 13:18:57.769 WARN [JobHandler: /var/workflow/instances/server0/2020-07-16_1/tsc_dam_product_update_asset_852:/content/dam/tsc/product/149632099_A1.jpg/jcr:content/renditions/original] com.day.cq.dam.commons.handler.StandardImageHandler extractMetadata: cannot read metadata from image [/content/dam/tsc/product/149632099_A1.jpg]:

      org.apache.commons.imaging.ImageReadException: Invalid Block Size : 83252 > 65504

              at org.apache.commons.imaging.formats.jpeg.iptc.IptcParser.parseAllBlocks(IptcParser.java:357) [org.apache.commons.commons-imaging:1.0.0.R1725432-B002]

       

      The API being used is https://github.com/apache/commons-imaging/blob/commons-imaging-1.0-RC1/src/main/java/org/apache/commons/imaging/formats/jpeg/iptc/IptcParser.java#L321

       

      Can you please let me know why is this error happening, and what needs to be done to the image to get it pass through this error. Are there any specific image parameters or metedata which needs to be changed to get this corrected. I have attached one image which is having this issue. 

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              aditya7777 aditya seth
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:

                Time Tracking

                  Estimated:
                  Original Estimate - 48h
                  48h
                  Remaining:
                  Remaining Estimate - 48h
                  48h
                  Logged:
                  Time Spent - Not Specified
                  Not Specified