Uploaded image for project: 'Nuxeo Platform'
  1. Nuxeo Platform
  2. NXP-28172

Use picture info in nuxeo-picture-formats

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 10.10
    • Fix Version/s: 10.10-HF20, 11.1, 2021.0
    • Component/s: Web UI

      Description

      picture:views height and width is recorded twice. Under certain conditions the height and width shown in the info object can differ from the 'other' dimensions. Update https://github.com/nuxeo/nuxeo-web-ui/blob/master/addons/nuxeo-dam/elements/nuxeo-picture-formats.js#L84 so that picture:views/info/height and picture:views/info/width is used instead of picture:views/height and picture:views/width

      Changing this line in the getAdditionalFormats function should do it:

       dimensions: `${view.info.width} x ${view.info.height}`,
      

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 4 hours
                  4h