Project

General

Profile

Actions

feature request #9134

closed

Rule based creation of additional media representations "on the fly"

Added by Andreas Kohlbecker almost 4 years ago. Updated over 2 years ago.

Status:
Closed
Priority:
Priority14
Category:
cdmlib-remote
Target version:
Start date:
Due date:
% Done:

100%

Estimated time:
Severity:
normal

Description

Often only the full sized image URIs are recorded in a db but thumbnail sized images are often required.

Based on a set of rules the missing media representation can be created at request time.

As the MediaRepresentations are created as purely volatile objects they must not be persised. To prevent from erroneously storing them as part of an cdm entity graph the classes that produce these new MediaRepresentations should only reside in cdmlib-remote.

All method in cdmlib-remote which return Media or MediaRepresentation should be equipped with this functionality.

Other methods which also make use of the according MediaUtil methods can not be adapted:

  • MediaUtils.findBestMatchingRepresentation()
    • eu.etaxonomy.cdm.api.service.ClassificationServiceImpl.getAllMediaForChildNodes(TaxonNode taxonNode, List propertyPaths, int size, int height, int widthOrDuration, String[] mimeTypes)

Related issues

Related to EDIT - feature request #9135: All media related web service end points with MediaUriTransformation and/or bestMatchingRepresentation filter NewAndreas Kohlbecker

Actions
Related to EDIT - task #9132: Update cyprus images to Scaler default API and add thumbnailsIn ProgressAndreas Müller

Actions
Related to EDIT - task #9160: Avoid modified media entities in IMediaToolbox.filterPreferredMediaRepresentations()NewAndreas Kohlbecker

Actions
Related to EDIT - task #9203: Filter out generated MediaRepresentations if a part with exactly the same URL already exists.NewAndreas Kohlbecker

Actions
Actions

Also available in: Atom PDF