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