pdfbox-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF subversion and git services (Jira)" <j...@apache.org>
Subject [jira] [Commented] (PDFBOX-4691) JPEGFactory should not decode JPEG files when only meta data is needed
Date Sun, 17 Nov 2019 11:19:00 GMT

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

ASF subversion and git services commented on PDFBOX-4691:
---------------------------------------------------------

Commit 1869930 from Tilman Hausherr in branch 'pdfbox/branches/issue45'
[ https://svn.apache.org/r1869930 ]

PDFBOX-4691: SonarQube fix

> JPEGFactory should not decode JPEG files when only meta data is needed
> ----------------------------------------------------------------------
>
>                 Key: PDFBOX-4691
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-4691
>             Project: PDFBox
>          Issue Type: Improvement
>    Affects Versions: 2.0.17
>            Reporter: Tilman Hausherr
>            Assignee: Tilman Hausherr
>            Priority: Major
>              Labels: optimization
>             Fix For: 2.0.18, 3.0.0 PDFBox
>
>
> {{JPEGFactory.createFromByteArray}} calls {{JPEGFactory.readJPEGRaster}} to get the (decoded)
raster although only meta data (size and number of data elements) is needed. This should be
optimized so that only the meta data is used, if possible. The current behavior should be
kept as fallback.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@pdfbox.apache.org
For additional commands, e-mail: dev-help@pdfbox.apache.org


Mime
View raw message