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

Add expand option to SimpleResizeVariation

    XMLWordPrintable

Details

    • 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

          Issue Links

            Activity

              People

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

                Dates

                  Created:
                  Updated:
                  Resolved:

                  Checklists

                    Task DoD