United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: JDK-6488522 PNG writer should permit setting compression level and iDAT chunk maximum size
JDK-6488522 : PNG writer should permit setting compression level and iDAT chunk maximum size

Details
Type:
Enhancement
Submit Date:
2006-10-31
Status:
Open
Updated Date:
2014-05-29
Project Name:
JDK
Resolved Date:
Component:
client-libs
OS:
generic
Sub-Component:
javax.imageio
CPU:
generic
Priority:
P4
Resolution:
Unresolved
Affected Versions:
9
Targeted Versions:
tbd_major

Related Reports

Sub Tasks

Description
Currently the PNG compression level and iDAT chunk size are not mutable via the API. Not being able to set the iDAT size is a problem for some customers as evidenced by this issue:

https://jai-imageio-core.dev.java.net/issues/show_bug.cgi?id=95

Currently in jai-imageio the compression level and other items are settable as described here:

http://download.java.net/media/jai-imageio/javadoc/1.1/overview-summary.html#PNGImageWriteParam

                                    

Comments
SUGGESTED FIX

Create a new ImageWriteParam subclass javax.imageio.plugins.png.PNGImageWritePatam which has a mutator and accessor for the compression level and the iDAT maximum size. The default iDAT size should be 8192 to match libpng.
                                     
2006-10-31
Please re-open if
 - if fix is in progress or on the plan to fix soon
 - if this is a P3 (file as P3, not P4) 
                                     
2014-03-18



Hardware and Software, Engineered to Work Together