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

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

The JPEGFactory and the CCITTFactory are based on a specific file format 
(jpeg/tiff) so it's more or less easy to read a byte array/file/stream of that 
format. The LossLessFactory isn't based on any file format so that PDFBox would 
have to detect and support more or less different file formats. As PDFBox isn't 
a graphics lib we don't want to do that. The user has to find out how to read 
his/her favourite format and convert ot to a buffered image.

> API unifications for image factories
> ------------------------------------
>
>                 Key: PDFBOX-4042
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-4042
>             Project: PDFBox
>          Issue Type: Improvement
>          Components: PDModel
>    Affects Versions: 2.0.8
>            Reporter: Philip Helger
>            Priority: Minor
>
> HI guys!
> {{JPEGFactory}} has a lot of factory methods to create itself from byte 
> array, from BufferedImage or from Stream
> {{CCITTFactory}} has factory methods to read from byte array, from File and 
> from BufferedImage
> {{LosslessFactory}} has only one factory method to read from BufferedImage.
> I think it would be reasonable to unify the factory methods.
> Thanks, Philip



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to