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 11:42:02 UTC

[jira] [Resolved] (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:all-tabpanel ]

Tilman Hausherr resolved PDFBOX-2123.
-------------------------------------

       Resolution: Fixed
    Fix Version/s: 2.0.0

I commited a slightly modified version of your patch in rev 1601080, i.e. I didn't exclude 1bit images that didn't have the default decode. I tested with many images and didn't get any differences. The rendering times didn't improve as much as with your example, but they did. Thanks!

> 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
>            Assignee: Tilman Hausherr
>             Fix For: 2.0.0
>
>         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)