[MGNLIMG-45] Resizing: provide optional non-expansion Created: 26/May/09  Updated: 23/Sep/14  Resolved: 16/Sep/14

Status: Closed
Project: Imaging
Component/s: None
Affects Version/s: None
Fix Version/s: 2.2.6, 3.0.6, 3.1.2

Type: New Feature Priority: Major
Reporter: Magnolia International Assignee: Evzen Fochr
Resolution: Fixed Votes: 1
Labels: support
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
duplicate
is duplicated by MGNLIMG-124 Imaging module upsampling Closed
relation
Template:
Acceptance criteria:
Empty
Release notes required:
Yes
Date of First Response:

 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



 Comments   
Comment by Evzen Fochr [ 16/Sep/14 ]

for 2.2.x is needed to add "/magnolia-logo.png" to test resources

Generated at Mon Feb 12 02:11:44 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.