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

Tilman Hausherr commented on PDFBOX-4285:
-----------------------------------------

This was introduced in rev 1574811 in PDFBOX-1734. I mention this because the 
original comment was "//TODO? another writeImage() call with extra compression 
param so user can decide". Would such an extra parameter (String compression) 
be ok for you? This would be added to the "last" method (that is called by the 
others), which is 

public static boolean writeImage(BufferedImage image, String formatName, 
OutputStream output,
            int dpi, float quality) throws IOException

> Expose the tiff compression type to the user.
> ---------------------------------------------
>
>                 Key: PDFBOX-4285
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-4285
>             Project: PDFBox
>          Issue Type: Improvement
>          Components: Writing
>    Affects Versions: 2.0.11
>            Reporter: Alexandre Moraes do Nasciment
>            Priority: Major
>              Labels: TIFF
>
> Allow the user to set the compression type of Tiff files externally.
> In the current version, the class ImageIOUtil uses 
> TIFFUtil.setCompressionType and this sets the compression only to "CCITT T.6" 
> or "LZW". 
> Other choice could be allow the jpeg compression that is more efficient.
> It already has a TODO in code (// TODO expose this choice to the user?)
> Thank you.



--
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