ICEpdf
  1. ICEpdf
  2. PDF-364

Image Mask scalling results in lower quality output

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 4.2.2
    • Fix Version/s: 5.0.5
    • Component/s: Core/Parsing
    • Labels:
      None
    • Environment:
      any

      Description

      The PDF in question is an OCR'd scan. As per the usual there is background images which is blurred slightly, followed by a for ground images that contains the page scan. Text derived from OCR is drawn in correct location to line up for text selection.

      The foreground images is causing the quality problem. The images is composed of a regular jpeg at about 827x1169 pixels and a ccitttfax image mask at 2481x3508. We currently scale the mask to match the base image dimension which in this case is quite small. I suspect this is the reason for the low compressed quality.

        Activity

        Patrick Corless created issue -
        Patrick Corless made changes -
        Field Original Value New Value
        Salesforce Case []
        Fix Version/s 5.0 [ 10314 ]
        Fix Version/s 4.3 [ 10266 ]
        Patrick Corless made changes -
        Fix Version/s 5.1 [ 10675 ]
        Fix Version/s 5.0 [ 10314 ]
        Hide
        Patrick Corless added a comment -

        The image masking has been normalized to one location in ImageUtility. The default behavior is to always scale the image to match the larger mask or vise versa. There is a new system property org.icepdf.core.imageMaskScale.quality when equal to false will scale down to the smaller image and thus save memory but lower the render quality.

        Show
        Patrick Corless added a comment - The image masking has been normalized to one location in ImageUtility. The default behavior is to always scale the image to match the larger mask or vise versa. There is a new system property org.icepdf.core.imageMaskScale.quality when equal to false will scale down to the smaller image and thus save memory but lower the render quality.
        Patrick Corless made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Fix Version/s 5.0.5 [ 11373 ]
        Fix Version/s 5.1 [ 10675 ]
        Resolution Fixed [ 1 ]
        Patrick Corless made changes -
        Status Resolved [ 5 ] Closed [ 6 ]

          People

          • Assignee:
            Patrick Corless
            Reporter:
            Patrick Corless
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: