The ImageRotateAndResize widget can be used for resizing or rotating images and provides events to catch the new image values @ server side.

The widget is using the HTML5 Canvas and so compatible with all browsers.
For older Internet Explorer's, a fallback to the Matrix Filter is used.
Components and more
Documentation pe:imageRotateAndResize
Attributes (move mouse over the names to see data types)
Name Description
id Unique identifier of the component in a naming container.
rendered Boolean value to specify the rendering of the component, when set to false component will not be rendered.
binding An EL expression referring to a server side UIComponent instance in a backing bean.
widgetVar Name of the client side widget.
for The target image.
Events (move mouse over the names to see classes)
Name Description
rotatefired after image rotation
resizefired after image resizing
PrimeFaces Extensions Showcase - © 2011-2021,PrimeFaces: 11.0.0,PrimeFaces Extensions: 11.0.3,JSF: Apache MyFaces JSF-2.3 Core API 2.3.9,Server: jetty/9.4.36.v20210114,Build time: 2022-04-17 14:55