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

ASF GitHub Bot commented on NIFI-5355:
--------------------------------------

Github user patricker commented on the issue:

    https://github.com/apache/nifi/pull/2854
  
    Some further research.
    
    Original source code location: 
https://web.archive.org/web/20080516181120/http://today.java.net/pub/a/today/2007/04/03/perils-of-image-getscaledinstance.html
    
    The code has no listed license. So according to that website:
    
    https://web.archive.org/web/20080512032235/http://java.net/terms.csp
    
    Source Code Submissions. You agree that any source code You contribute to a 
Project will be submitted under, and subject to, the license posted for that 
Project. If no license is posted, You agree that Your Submission will be 
governed by the Apache License, Version 2.0, which terms can be found at 
http://opensource.org/licenses/apache2.0.php. You acknowledge that You are 
responsible for including all applicable copyright notices and licenses with 
Your Submissions, and that You assume the risks of failing to do so, including 
the potential loss of Your rights to Your Submissions.


> ResizeImage Fails to read PNG type on some OS's
> -----------------------------------------------
>
>                 Key: NIFI-5355
>                 URL: https://issues.apache.org/jira/browse/NIFI-5355
>             Project: Apache NiFi
>          Issue Type: Bug
>            Reporter: Peter Wicks
>            Assignee: Peter Wicks
>            Priority: Minor
>
> On some operating systems ResizeImage will fail to properly read the PNG file 
> type when calling getType. It will return '0' instead of '5'.
>  
> [https://github.com/apache/nifi/blob/master/nifi-nar-bundles/nifi-media-bundle/nifi-media-processors/src/main/java/org/apache/nifi/processors/image/ResizeImage.java#L177]



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

Reply via email to