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

Add expand option to SimpleResizeVariation

XMLWordPrintable

    • Yes

      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);
          ...
          ...
      }
      

        Acceptance criteria

              rgange Richard Gange
              rgange Richard Gange
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved:

                  Task DoD