Uploaded image for project: 'External DAMs'
  1. External DAMs
  2. EXTDAM-305

Implement Renditions for Bynder asset using Bynder derivatives

    XMLWordPrintable

Details

    • Yes
    • Yes
    • Content Mngmt 13, Content Mngmt 14
    • 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

      Checklists

        Acceptance criteria

        Attachments

          Issue Links

            Activity

              People

                nguyen.phung Nguyen Phung Chi
                nguyen.phung Nguyen Phung Chi
                Votes:
                2 Vote for this issue
                Watchers:
                6 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved:

                  Checklists

                    Task DoD

                    Time Tracking

                      Estimated:
                      Original Estimate - Not Specified
                      Not Specified
                      Remaining:
                      Remaining Estimate - Not Specified
                      Not Specified
                      Logged:
                      Time Spent - 8.25d
                      8.25d