[ https://issues.apache.org/jira/browse/NIFI-5355?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16535815#comment-16535815 ]
ASF GitHub Bot commented on NIFI-5355: -------------------------------------- Github user MikeThomsen commented on a diff in the pull request: https://github.com/apache/nifi/pull/2854#discussion_r200815662 --- Diff: nifi-nar-bundles/nifi-media-bundle/nifi-media-processors/src/main/java/org/apache/nifi/processors/image/ResizeImage.java --- @@ -196,4 +187,53 @@ public void process(final InputStream rawIn, final OutputStream out) throws IOEx } } + // https://stackoverflow.com/questions/7951290/re-sizing-an-image-without-losing-quality --- End diff -- @joewitt StackOverflow has the following disclaimer: > site design / logo © 2018 Stack Exchange Inc; user contributions licensed under cc by-sa 3.0 with attribution required. rev 2018.7.5.30950 > 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)