I'd like to add a border with rounded corners to images in my publication.
That's simple enough using Antennahouse:
<fo:block border="1pt solid black" axf:border-radius="4mm">
But when I place an image inside this block, the image extends to the corners of the rectangle, i.e. the image is visible in the area outside the rounded corners (the black areas in the image above).
Is it possible to hide the image area outside the rounded corners?
I've tried stacking 2 images using z-index: z-index=1 for an image that contains the borders and a transparent center, z-index=0 for the photo. That sort of works, but because I have images of variable sizes I have to resize the border image and I end up with different border thicknesses and radii.