Uploaded image for project: 'Magnolia DAM Module'
  1. Magnolia DAM Module
  2. MGNLDAM-1008

Display appropriate size for bigger image

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Unresolved
    • Neutral
    • None
    • None
    • None
    • None

    Description

      I think it would be good, for bigger images, to display MB instead of KB.

      This code we use in the subscription service ui, although it is in typescript, might help -> https://git.magnolia-cms.com/projects/CLOUD/repos/subscription-service-ui/browse/src/app/page/subscription-info/metric/component/metric-value/metric-value.component.ts#30

      Should make change in two places:
      1. Create a page with Basic template, then select component "Text and Image", try to upload an image

       

      2. In Asset app, select to view an asset detail

      Expected result:

      Display size in MB for big image instead of KB

       

      Dev notes:

      info.magnolia.dam.app.field.link.DamItemPreviewComponent#getFileInfo

      info.magnolia.ui.field.UploadFieldDetailComponent#getFormattedSizeInfo

      Checklists

        Acceptance criteria

        Attachments

          Activity

            People

              Unassigned Unassigned
              yen.lactue Yen Lac Tue
              AuthorX
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:

                Checklists

                  Task DoD

                  Time Tracking

                    Estimated:
                    Original Estimate - Not Specified
                    Not Specified
                    Remaining:
                    Remaining Estimate - Not Specified
                    Not Specified
                    Logged:
                    Time Spent - 0.25h
                    0.25h