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

Resizing: provide optional non-expansion

    XMLWordPrintable

Details

    • New Feature
    • Resolution: Fixed
    • Major
    • 2.2.6, 3.0.6, 3.1.2
    • None
    • None
    • Yes

    Description

      The current implementations of resizing will always try to resize to the size provided by getEffectiveTargetSize(). For smaller source images, it might be desirable to keep the original source as-is and simply expand the resulting image "canvas" without actually resizing its content.

      Added new option for BoundedResize class. To turn on this feature add new property to node /config/modules/imaging/config/thumbnail (portrait or large)/operation/resize - new property expand with value false

      Checklists

        Acceptance criteria

        Attachments

          Issue Links

            Activity

              People

                efochr Evzen Fochr
                gjoseph Magnolia International
                Votes:
                1 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved: