[ 
https://issues.apache.org/jira/browse/IMAGING-243?focusedWorklogId=347271&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-347271
 ]

ASF GitHub Bot logged work on IMAGING-243:
------------------------------------------

                Author: ASF GitHub Bot
            Created on: 21/Nov/19 09:22
            Start Date: 21/Nov/19 09:22
    Worklog Time Spent: 10m 
      Work Description: kinow commented on pull request #58: [IMAGING-243] PNG 
Writer Indexed Color with semi-transparent Pixels and Better Compression 
URL: https://github.com/apache/commons-imaging/pull/58#discussion_r348972234
 
 

 ##########
 File path: src/main/java/org/apache/commons/imaging/formats/png/PngWriter.java
 ##########
 @@ -396,6 +363,7 @@ public void writeImage(final BufferedImage src, final 
OutputStream os, Map<Strin
         }
         params.remove(ImagingConstants.PARAM_KEY_PIXEL_DENSITY);
         params.remove(PngConstants.PARAM_KEY_PHYSICAL_SCALE);
+        params.remove(PngConstants.PARAM_KEY_PNG_DEFLATE_COMPRESSION_LEVEL);
 
 Review comment:
   The current API around those parameters is a bit strange. It requires you to 
remove them all, in order to validate you have valid parameters. It definitely 
needs changing, but for now we will have to stick with the current API.
   
   Looking at your change, you used `getOrDefault` instead of the suggested 
patch in that PR - which would work great. But you also had to call `.remove` 
here. So I think `compressionLevel` will be always-ever the default level?
 
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


Issue Time Tracking
-------------------

    Worklog Id:     (was: 347271)
    Time Spent: 40m  (was: 0.5h)

> PNG Writer Indexed Color with semi-transparent Pixels and Better Compression
> ----------------------------------------------------------------------------
>
>                 Key: IMAGING-243
>                 URL: https://issues.apache.org/jira/browse/IMAGING-243
>             Project: Commons Imaging
>          Issue Type: Improvement
>          Components: Format: PNG
>    Affects Versions: 1.0-alpha1
>            Reporter: Andreas
>            Assignee: Bruno P. Kinoshita
>            Priority: Minor
>              Labels: pull-request-available
>             Fix For: 1.0-alpha2
>
>          Time Spent: 40m
>  Remaining Estimate: 0h
>
> I updated the PNG-Writer for smaller png-Files: 
>  * PNG Writer Indexed Color with semi-transparent Pixels
>  * Better Compression
>  
> See Pull-Request: [https://github.com/apache/commons-imaging/pull/58]
>  



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

Reply via email to