It's also possible to just include the URN in the URL, so no need for parsing it client side.
link to picture includeFor java users there is also a 'taglib' in image-domain.jar
This could look like this in JSP:
<images:picture
image="${metadata}"
style="width: 80%; margin-left: 10%"
class="foo"
img.title="Override of the title"
img.class="bar"
data-test="some random data"
img.data-test="more random data"
/>
In FTL this may look like so
[#assign images = JspTaglibs["https://github.com/npo-poms/poms-shared/tags/images"]]
[@images.picture image=model.imageMetata data-test="bla bla" /]
Which could result in:
![Override of the title Nationale Holocaust Herdenking 26 jan 2025 [ANP].jpg](/image/s640%3E/2461521.jpg)
The beforementioned 'picture'-endpoints could be used in a server side include. We demonstrate in JSP again:
<jsp:include page="https://images.poms.omroep.nl/picture/${id}/${stylePath2}"/>![Nationale Holocaust Herdenking 26 jan 2025 [ANP].jpg Nationale Holocaust Herdenking 26 jan 2025 [ANP].jpg](https://images.poms.omroep.nl/image/s640%3E/2461521.jpg)