[EXTDAM-307] Display image sizes variations in Bynder asset details Created: 30/Sep/21  Updated: 25/Oct/21  Resolved: 22/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: Yen Lac Tue
Resolution: Fixed Votes: 0
Labels: VN-Implementation, VN-Testing, cm-team-support
Remaining Estimate: Not Specified
Time Spent: 3d 6h 50m
Original Estimate: Not Specified

Attachments: PNG File image-2021-09-21-11-18-37-723.png     PNG File image-2021-10-05-17-46-36-130.png     PNG File image-2021-10-05-17-48-13-996.png    
Issue Links:
Cloners
clones EXTDAM-305 Implement Renditions for Bynder asset... Closed
Relates
relates to EXTDAM-289 Investigate: Enable Renditions for By... 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
[X]  Architecture Decision Record (ADR)
Release notes required:
Yes
Documentation update required:
Yes
Epic Link: cm-team-support
Sprint: Content Mngmt 15
Story Points: 3

 Description   

Context

  • Follow up the backend implementation EXTDAM-305, Bynder have different image size variation depending from the original image.
  • So, showing the size variations from Bynder could be help users to get the correct one using damfn templating function, example: damfn.getAssetLink(bynderAsset, "small")

Expected results

  • Show the size variations of the asset like the mockup 
  • Display nothing or can hide the field if creating new asset

Dev notes

The size variations can be get from the BynderAsset#bynderMedia#mediaItems. The list mediaItems contains all versions of the asset, so we should get only the latest version by checking isActive property and Version property. Similar method BynderAsset#getMediaItem

The name is longer than the expected from the mockup, should be split by "-", example mediaItem name is: "large-shining.jpg", we should display "large" only.

 


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