-
Bug
-
Resolution: Fixed
-
Medium
-
None
-
None
-
None
info.magnolia.dam.focal.point.observation.FocalPointAssetObservation writes default values (50, 50) for each registered variation into the JCR when a new asset is created.
Generally, I would like to question, whether this approach is the correct way to tackle default values, as it doesn't account for variations added to the definitions after an asset was created.
Without going into depth, FocalPointAdapter seems to be a more suitable location to add default/fallback values on the fly ensuring that consumers always get a focal point value for each registered variation.
Disregarding the usefulness of writing default values to the JCR in general:
- we have 8 variations registered
- we have 2500+ PDFs stored in the DAM (and growing)
- FocalPointAssetObservation writes default values irrespectively of the underlying mimeType
- in our scenario, this leads to the creation of 22.500+ unnecessary nodes being created
If persisting default values is really necessary, kindly consider adding a condition based on the mimeType/fileType/tika recognized mimeType.
Many thanks!
- relates to
-
RESPDAM-77 FocalAreas information is not stored when using default values
- Closed
-
RESPDAM-85 Focal point default information is stored invalid when uploading using multi upload
- Closed