You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "Andreas Lehmkühler (JIRA)" <ji...@apache.org> on 2014/01/10 14:41:51 UTC

[jira] [Commented] (PDFBOX-1839) PDFImageWriter default BufferedImage type makes output colors look poor

    [ https://issues.apache.org/jira/browse/PDFBOX-1839?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13867794#comment-13867794 ] 

Andreas Lehmkühler commented on PDFBOX-1839:
--------------------------------------------

We already did the same in RenderUtil, see PDFBOX-1730

> PDFImageWriter default BufferedImage type makes output colors look poor
> -----------------------------------------------------------------------
>
>                 Key: PDFBOX-1839
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-1839
>             Project: PDFBox
>          Issue Type: Improvement
>         Environment: XP, JDK7 45
>            Reporter: Tilman Hausherr
>            Priority: Minor
>         Attachments: Kommunikationsbedingungen-Einlagen_FIDOR-Bank.pdf, Kommunikationsbedingungen-Einlagen_FIDOR-Bank.pdf-1-bad.png, PDFImageWriter.patch, kommunikationsbedingungen-einlagen_fidor-bank.pdf-1-good.png
>
>
> The default imageType for PDFImageWriter.writeImage() is 8, which is TYPE_USHORT_565_RGB. I suggest to use TYPE_INT_RGB instead. The current default might create a poor user experience.
> I also suggest that the type and the resolution ("screen resolution or 96 if not detected") be added to the javadoc.
> Finally, the variable "imageType" is used with two different meanings in that file: once as a string for the format, once as int for the BufferedImage type.



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)