thebuzzmedia/imgscalr — Issue #50: Extract out the robust application of BufferedImageOps to its own method
Author: thebuzzmedia
Created: 2011-10-28 00:37:52+00:00
State: open
Labels: improvement

BufferedImageOps actually have an 8-year old bug in the JDK that can cause the application of certain types of manipulations to fail with an exception or return a black/empty picture and no exception.

It is maddening.

Fortunately imgscalr works around this internally so all the BufferedImageOps passed in are handled correctly and avoid that failure case in the JDK.

This functionality should be extracted out into its own discrete method so anyone can safely (and efficiently) apply BufferedImageOps against their images even if they aren't performing a resize operation.

This is in the same vein as Issue #49: https://github.com/thebuzzmedia/imgscalr/issues/49