Uploaded image for project: 'PDFBox'
  1. PDFBox
  2. PDFBOX-1322

gif with less than 256 colors prints wrong colors

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Not A Problem
    • Affects Version/s: 1.6.0
    • Fix Version/s: 1.7.0
    • Component/s: None
    • Labels:
    • Environment:
      windows 7, java 1.6, jasperreports/ireport 4.5.1

      Description

      Using JasperReports, generate report with embedded jpg image. To make the resulting pdf smaller, I converted the image to a gif and tried to use as few colors as possible. The image is very simple and jpg wasn't the correct format to begin with, since it just has three colors. I used fsview to reduce the number of colors from 256 to 4. It is correct when printed by adobe, but when the java program, using pdfbox, prints it, the white background is prints as grey and the solid blue section seems less saturated so it's a light blue.

        Attachments

        1. mastercard_logo.gif
          12 kB
          John T. Dow
        2. GIF_Color_Test.PDF
          11 kB
          John T. Dow
        3. PDFBOX1322-GIF_Color_Test.ps.zip
          44 kB
          Andreas Lehmkühler

          Activity

            People

            • Assignee:
              lehmi Andreas Lehmkühler
              Reporter:
              johntdow John T. Dow
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: