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

        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.

          People

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

            Dates

            • Created:
              Updated:
              Resolved: