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

gif with less than 256 colors prints wrong colors

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Not A Problem
    • 1.6.0
    • 1.7.0
    • None
    • 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. PDFBOX1322-GIF_Color_Test.ps.zip
          44 kB
          Andreas Lehmkühler
        2. mastercard_logo.gif
          12 kB
          John T. Dow
        3. GIF_Color_Test.PDF
          11 kB
          John T. Dow

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: