Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-45365

As a developer I'd like to use ImageToolUtil from templates

    Details

      Description

      Currently there is no direct way to get the dimensions of an image in the document library.

      Given the following dynamic element in a WCM template, ...

      <dynamic-element
        dataType="document-library"
        fieldNamespace="ddm"
        indexType="keyword"
        name="picture"
        readOnly="false"
        repeatable="false"
        required="false"
        showLabel="true"
        type="ddm-documentlibrary"
        width=""
      />
      

      ... getting the dimensions of $picture isn't possible, because class ImageToolUtil would be required to do that.

        Attachments

          Activity

            People

            Assignee:
            lawrence.lee Lawrence Lee
            Reporter:
            laszlo.csontos Laszlo Csontos (Inactive)
            Recent user:
            Kiyoshi Lee
            Participants of an Issue:
            Votes:
            13 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Packages

                Version Package
                7.0.0 M1