Uploaded image for project: 'Imaging'
  1. Imaging
  2. MGNLIMG-169

Provide image resizing possibility without a theme

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Unresolved
    • Major
    • None
    • 3.2
    • tools
    • None

    Description

      Currently the only way to get resized images is via imaging rules defined in a theme:
      -> renditions of the DamTemplatingFunctions
      -> variations of the ImagingTemplatingFunctions

      This means that the template needs a site and a theme in use.
      But a site & theme is only available for the "site" page templates, not the "freemarker" templates.

      So for pure "freemarker" templating, there is currently no way of requesting different image sizes.
      Means that pure front end templaters using for example light modules & freemarker templates can't get resized images.

      It should provide something very simple, as any other CMS does:

      ${imgresizefn.resize(Asset asset, String width, String height)}
      ${imgresizefn.resize(Asset asset, String width)}
      ${imgresizefn.resize(Node binaryNode, String width, String height)}
      ${imgresizefn.resize(Node binaryNode, String width)}
      

      Checklists

        Acceptance criteria

        Attachments

          Issue Links

            Activity

              People

                Unassigned Unassigned
                cringele Christian Ringele
                Votes:
                4 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                  Created:
                  Updated:

                  Checklists

                    Task DoD