ImageCompare provides a graphical interface with a slider to compare two similar images. The images are set with leftImage and rightImage and must have the same size, which is given with width and height.
<div class="card">
<p:imageCompare leftImage="/resources/demo/images/compare/lara-ps3.png"
rightImage="/resources/demo/images/compare/lara-ps4.png"
width="450" height="435"/>
</div>