Cannot use picture tag with generated DAM renditions

Description

Requirement

We want to use HTML picture tag to display DAM renditions.

Code details

Below backend code of the component:

Below generated html:

Description

This was possible by remove in `media/src/main/java/io/wcm/handler/media/impl/MediaBuilderImpl.java`
checking `ensureMediaFormatHasRatio()`

If we add ratio to the builder the connection to DAM will be lost and every rendition will be generated on the fly and pointed under /content/... path, what is not expected from Caching Strategy point of view - if image in DAM will be changed then instead of invalidating one path in DAM we need to invalidate many under /content.

Proposed solution:

Could you add some way to skip ratio validation? Or we should implement our requirements differently?

Status

Assignee

Stefan Seifert

Reporter

Krzysztof Gorzynski

Labels

None

Components

Fix versions

Affects versions

Priority

Major
Configure