And the
Graphics2D for the image is also provided, so you can easily create your own effects.
This is purely a server-side component using java.awt.* and ImageIO APIs to load the images to create the effects. The result is always rendered as PNG regardless of what format the original picture is.
Sorry. I probably made it too easy to cause this error
There is a limitation how the new size is calculated for the rotated image.
It does not take account that the invisible parts of the image could be cropped while rotating. And unfortunately this 45 degrees rotate of square image is the most eager and you end up with quite a huge transparent image…
This is probably not so much a problem in other applications, but is quite annoying here.
Not that I have been able to update this lately, but Marc has found an extremely intuitive way of using this component: Image editing with the mouse gestures.