You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "Tilman Hausherr (JIRA)" <ji...@apache.org> on 2014/06/07 00:44:01 UTC

[jira] [Commented] (PDFBOX-2123) Optimize reading of 1-bit depth images in SampleImageReader

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

Tilman Hausherr commented on PDFBOX-2123:
-----------------------------------------

You are checking that the 1bit image has the default decode, but in the 1bit handler you handle both decodes?!

> Optimize reading of 1-bit depth images in SampleImageReader
> -----------------------------------------------------------
>
>                 Key: PDFBOX-2123
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-2123
>             Project: PDFBox
>          Issue Type: Improvement
>          Components: PDModel
>    Affects Versions: 2.0.0
>            Reporter: Petr Slaby
>         Attachments: 000008_test-scan 20121105144109807.pdf, SampledImageReader.java.patch
>
>
> Reading of 1-bit depth (black and white) images in SampleImageReader can be optimized. The attached patch reduces the time spent in SampleImageReader#getRGBImage() from 4 seconds to 1.8 second on my notebook with the attached PDF.



--
This message was sent by Atlassian JIRA
(v6.2#6252)