Uploaded image for project: 'Magnolia Templating Essentials'
  1. Magnolia Templating Essentials
  2. MTE-122

Add expand option to SimpleResizeVariation

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Neutral
    • Resolution: Done
    • Affects Version/s: 1.5.2
    • Fix Version/s: 1.5.4
    • Component/s: imaging
    • Documentation update required:
      Yes

      Description

      The SimpleResizeVariation allows you to set the width, height and crop option, but it's missing the option to specify if the image should be expanded when it should not be cropped.

      if (crop) { }
      else {
          final BoundedResize resize = new BoundedResize();
          if (expand) resize.setExpand(expand);
          ...
          ...
      }
      

        Checklists

        Acceptance criteria

          Attachments

            Activity

              People

              Assignee:
              fgrilli Federico Grilli
              Reporter:
              rgange Richard Gange
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Checklists

                  DoD