[EXTDAM-305] Implement Renditions for Bynder asset using Bynder derivatives Created: 28/Sep/21  Updated: 18/Oct/21  Resolved: 13/Oct/21

Status: Closed
Project: External DAMs
Component/s: None
Affects Version/s: 1.0.7
Fix Version/s: 1.1.0

Type: Improvement Priority: Neutral
Reporter: Nguyen Phung Chi Assignee: Nguyen Phung Chi
Resolution: Fixed Votes: 2
Labels: VN-Analysis, VN-Implementation, VN-Testing
Remaining Estimate: Not Specified
Time Spent: 8.25d
Original Estimate: Not Specified

Attachments: PNG File image-2021-09-21-11-18-37-723.png    
Issue Links:
Cloners
is cloned by EXTDAM-307 Display image sizes variations in Byn... Closed
Relates
relates to EXTDAM-289 Investigate: Enable Renditions for By... Closed
documentation
to be documented by EXTDAM-308 DOC: document how to enable and use i... Closed
relation
Template:
Acceptance criteria:
Empty
Task DoD:
[X]* Doc/release notes changes? Comment present?
[X]* Downstream builds green?
[X]* Solution information and context easily available?
[X]* Tests
[X]* FixVersion filled and not yet released
[ ]  Architecture Decision Record (ADR)
Release notes required:
Yes
Documentation update required:
Yes
Date of First Response:
Epic Link: Ext DAMs maintenance & partnership support
Sprint: Content Mngmt 13, Content Mngmt 14
Story Points: 5

 Description   

Context

  • Based on the outcome of EXTDAM-289, we can implement a functionality similar to Magnolia Rendition, to use Bynder derivatives
  • Bynder provides some derivatives by default, such as small, medium, large (see attachment), so we can use these as rendition name in damfn templating function method

Expected results

  • Return the derivative from Bynder when using damfn.getAssetLink(bynderAsset, "small")

Dev notes

https://developer-docs.bynder.com/api/downloading-assets/#retrieve-originals-and-derivatives

  • Sample code
// mediaId is Bynder asset key
MediaInfoQuery mediaInfoQuery = new MediaInfoQuery(mediaId);
mediaInfoQuery.setVersions(Boolean.TRUE);
// This response will include all media derivatives with URL to download
Response<Media> mediaInfo = assetService.getMediaInfo(mediaInfoQuery).blockingSingle();

// How to download a specific mediaItemId
MediaDownloadQuery mediaDownloadQuery = new MediaDownloadQuery(mediaId);
mediaDownloadQuery.setMediaItemId("622DAAD9-59C9-4270-95ECEE5B60399837");
Response<DownloadUrl> response = assetService.getMediaDownloadUrl(mediaDownloadQuery).blockingSingle();

  • So, we need to find out the mediaItemId based on the renditionName from damfn

Generated at Mon Feb 12 01:53:54 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.