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

Benedikt Ritter commented on IMAGING-186:
-----------------------------------------

{code}
$ svn ci -m "IMAGING-186: Add sCAL support to PNG reading and writing. Thanks 
to Ric Emery. This also closes #23 from GitHub."
Sending        src/changes/changes.xml
Sending        
src/main/java/org/apache/commons/imaging/formats/png/ChunkType.java
Adding         
src/main/java/org/apache/commons/imaging/formats/png/PhysicalScale.java
Sending        
src/main/java/org/apache/commons/imaging/formats/png/PngConstants.java
Sending        
src/main/java/org/apache/commons/imaging/formats/png/PngImageInfo.java
Sending        
src/main/java/org/apache/commons/imaging/formats/png/PngImageParser.java
Sending        
src/main/java/org/apache/commons/imaging/formats/png/PngWriter.java
Adding         
src/main/java/org/apache/commons/imaging/formats/png/chunks/PngChunkScal.java
Adding         
src/test/java/org/apache/commons/imaging/formats/png/PhysicalScaleTest.java
Sending        
src/test/java/org/apache/commons/imaging/formats/png/PngWriteReadTest.java
Adding         src/test/java/org/apache/commons/imaging/formats/png/chunks
Adding         
src/test/java/org/apache/commons/imaging/formats/png/chunks/PngChunkScalTest.java
Transmitting file data ...........done
Committing transaction...
Committed revision 1754653.
{code}

Thank you!

> Add sCAL support to PNG reading and writing
> -------------------------------------------
>
>                 Key: IMAGING-186
>                 URL: https://issues.apache.org/jira/browse/IMAGING-186
>             Project: Commons Imaging
>          Issue Type: Improvement
>          Components: Format: PNG
>            Reporter: Ric Emery
>            Priority: Minor
>              Labels: feature, newbie
>             Fix For: 1.0
>
>
> It would be nice if the optional PNG - Physical Scale - sCAL chunk could be 
> read and written. 
> http://www.libpng.org/pub/png/book/chapter11.html#png.ch11.div.9
> For my use case, the pHYs chunk is not a good alternative. the pHYs x and y 
> values are ints which lose necessary precision.
> I have a patch (with junits) ready for your review if you are interested.
> Thanks



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to