[MTE-122] Add expand option to SimpleResizeVariation Created: 25/Jan/21  Updated: 27/May/21  Resolved: 08/Apr/21

Status: Closed
Project: Magnolia Templating Essentials
Component/s: imaging
Affects Version/s: 1.5.2
Fix Version/s: 1.5.4

Type: Improvement Priority: Neutral
Reporter: Richard Gange Assignee: Richard Gange
Resolution: Done Votes: 0
Labels: maintenance, quickwin
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
documentation
to be documented by MTE-130 DOC: New 'expand' property in SimpleR... Closed
relation
Template:
Acceptance criteria:
Empty
Task DoD:
[X]* Doc/release notes changes? Comment present?
[X]* Downstream builds green?
[X]* Solution information and context easily available?
[X]* Tests
[X]* FixVersion filled and not yet released
[ ]  Architecture Decision Record (ADR)
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);
    ...
    ...
}

Generated at Mon Feb 12 07:41:43 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.