You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "John T. Dow (JIRA)" <ji...@apache.org> on 2012/05/24 16:36:55 UTC

[jira] [Created] (PDFBOX-1322) gif with less than 256 colors prints wrong colors

John T. Dow created PDFBOX-1322:
-----------------------------------

             Summary: gif with less than 256 colors prints wrong colors
                 Key: PDFBOX-1322
                 URL: https://issues.apache.org/jira/browse/PDFBOX-1322
             Project: PDFBox
          Issue Type: Bug
    Affects Versions: 1.6.0
         Environment: windows 7, java 1.6, jasperreports/ireport 4.5.1
            Reporter: John T. Dow


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.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Closed] (PDFBOX-1322) gif with less than 256 colors prints wrong colors

Posted by "Andreas Lehmkühler (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/PDFBOX-1322?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Andreas Lehmkühler closed PDFBOX-1322.
--------------------------------------

    
> gif with less than 256 colors prints wrong colors
> -------------------------------------------------
>
>                 Key: PDFBOX-1322
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-1322
>             Project: PDFBox
>          Issue Type: Bug
>    Affects Versions: 1.6.0
>         Environment: windows 7, java 1.6, jasperreports/ireport 4.5.1
>            Reporter: John T. Dow
>            Assignee: Andreas Lehmkühler
>              Labels: accuracy, color
>             Fix For: 1.7.0
>
>         Attachments: GIF_Color_Test.PDF, PDFBOX1322-GIF_Color_Test.ps.zip, mastercard_logo.gif
>
>
> 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.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

[jira] [Updated] (PDFBOX-1322) gif with less than 256 colors prints wrong colors

Posted by "John T. Dow (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/PDFBOX-1322?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

John T. Dow updated PDFBOX-1322:
--------------------------------

    Attachment: mastercard_logo.gif

4 colors
                
> gif with less than 256 colors prints wrong colors
> -------------------------------------------------
>
>                 Key: PDFBOX-1322
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-1322
>             Project: PDFBox
>          Issue Type: Bug
>    Affects Versions: 1.6.0
>         Environment: windows 7, java 1.6, jasperreports/ireport 4.5.1
>            Reporter: John T. Dow
>              Labels: accuracy, color
>         Attachments: mastercard_logo.gif
>
>
> 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.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Assigned] (PDFBOX-1322) gif with less than 256 colors prints wrong colors

Posted by "Andreas Lehmkühler (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/PDFBOX-1322?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Andreas Lehmkühler reassigned PDFBOX-1322:
------------------------------------------

    Assignee: Andreas Lehmkühler
    
> gif with less than 256 colors prints wrong colors
> -------------------------------------------------
>
>                 Key: PDFBOX-1322
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-1322
>             Project: PDFBox
>          Issue Type: Bug
>    Affects Versions: 1.6.0
>         Environment: windows 7, java 1.6, jasperreports/ireport 4.5.1
>            Reporter: John T. Dow
>            Assignee: Andreas Lehmkühler
>              Labels: accuracy, color
>         Attachments: GIF_Color_Test.PDF, mastercard_logo.gif
>
>
> 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.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

[jira] [Resolved] (PDFBOX-1322) gif with less than 256 colors prints wrong colors

Posted by "Andreas Lehmkühler (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/PDFBOX-1322?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Andreas Lehmkühler resolved PDFBOX-1322.
----------------------------------------

       Resolution: Not A Problem
    Fix Version/s: 1.7.0

Works fine with the all new version 1.7.0 of PDFBox [1], see attached ps-print

[1] http://pdfbox.apache.org/download.html
                
> gif with less than 256 colors prints wrong colors
> -------------------------------------------------
>
>                 Key: PDFBOX-1322
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-1322
>             Project: PDFBox
>          Issue Type: Bug
>    Affects Versions: 1.6.0
>         Environment: windows 7, java 1.6, jasperreports/ireport 4.5.1
>            Reporter: John T. Dow
>            Assignee: Andreas Lehmkühler
>              Labels: accuracy, color
>             Fix For: 1.7.0
>
>         Attachments: GIF_Color_Test.PDF, PDFBOX1322-GIF_Color_Test.ps.zip, mastercard_logo.gif
>
>
> 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.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

[jira] [Updated] (PDFBOX-1322) gif with less than 256 colors prints wrong colors

Posted by "John T. Dow (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/PDFBOX-1322?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

John T. Dow updated PDFBOX-1322:
--------------------------------

    Attachment: GIF_Color_Test.PDF

PDF with 4-color gif
                
> gif with less than 256 colors prints wrong colors
> -------------------------------------------------
>
>                 Key: PDFBOX-1322
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-1322
>             Project: PDFBox
>          Issue Type: Bug
>    Affects Versions: 1.6.0
>         Environment: windows 7, java 1.6, jasperreports/ireport 4.5.1
>            Reporter: John T. Dow
>              Labels: accuracy, color
>         Attachments: GIF_Color_Test.PDF, mastercard_logo.gif
>
>
> 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.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Comment Edited] (PDFBOX-1322) gif with less than 256 colors prints wrong colors

Posted by "John T. Dow (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/PDFBOX-1322?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13283981#comment-13283981 ] 

John T. Dow edited comment on PDFBOX-1322 at 5/26/12 2:06 PM:
--------------------------------------------------------------

I am sending a 4-color gif and the pdf that includes the image. If I view the pdf, the colors are correct. If I print it via Adobe, the colors are correct. If I print it from my application (which uses pdfbox for scaling), the colors are incorrect.
                
      was (Author: johntdow):
    4 colors
                  
> gif with less than 256 colors prints wrong colors
> -------------------------------------------------
>
>                 Key: PDFBOX-1322
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-1322
>             Project: PDFBox
>          Issue Type: Bug
>    Affects Versions: 1.6.0
>         Environment: windows 7, java 1.6, jasperreports/ireport 4.5.1
>            Reporter: John T. Dow
>              Labels: accuracy, color
>         Attachments: GIF_Color_Test.PDF, mastercard_logo.gif
>
>
> 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.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (PDFBOX-1322) gif with less than 256 colors prints wrong colors

Posted by "Andreas Lehmkühler (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/PDFBOX-1322?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Andreas Lehmkühler updated PDFBOX-1322:
---------------------------------------

    Attachment: PDFBOX1322-GIF_Color_Test.ps.zip
    
> gif with less than 256 colors prints wrong colors
> -------------------------------------------------
>
>                 Key: PDFBOX-1322
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-1322
>             Project: PDFBox
>          Issue Type: Bug
>    Affects Versions: 1.6.0
>         Environment: windows 7, java 1.6, jasperreports/ireport 4.5.1
>            Reporter: John T. Dow
>            Assignee: Andreas Lehmkühler
>              Labels: accuracy, color
>         Attachments: GIF_Color_Test.PDF, PDFBOX1322-GIF_Color_Test.ps.zip, mastercard_logo.gif
>
>
> 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.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira