[MGNLDAM-2] DOCU: document use of Bicubic interpolation for resizing on thumbnail generation Created: 26/Oct/12  Updated: 23/Aug/22

Status: Open
Project: Magnolia DAM Module
Component/s: None
Affects Version/s: 1.0
Fix Version/s: None

Type: Improvement Priority: Neutral
Reporter: Christopher Zimmermann Assignee: Christopher Zimmermann
Resolution: Unresolved Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: PNG File Screenshot 2021-04-23 at 22.01.44.png     File config.modules.imaging.config.generators.thumbnail.yaml    
Template:
Acceptance criteria:
Empty
Task DoD:
[ ]* Doc/release notes changes? Comment present?
[ ]* Downstream builds green?
[ ]* Solution information and context easily available?
[ ]* Tests
[ ]* FixVersion filled and not yet released
[ ]  Architecture Decision Record (ADR)
Date of First Response:
Team: AuthorX

 Description   

Bilinear interpolation is the default in BasicResizer.java.
But it looks bad and Bicubic looks good. But bicubic is much slower. 2 to 4 times slower in my tests.

In experiments, I was able to change a specific resize operation "BoundedResize" to be able to accept an "interpolation" node on its configuration.

But I want to see if its possible in a more generic way to set "interpolation" as a parameter, so it doesnt have to be built in specifiically for every operation.
BoundedResize extends AbstractCropAndResize.java which has a BasicResizer as a member.
Is there not a way to configure the BasicResizer itself via configuration node? Perhaps. I will ask Gregory.

For best quality bicubic would be used everywhere - but bilinear resizing is passable for bigger images. It looks bad on small images.



 Comments   
Comment by Jan Haderka [ 23/Apr/21 ]

Described change is already possible and configurable, albeit not documented. See details of the configuration:

Supported values are: bilinear (default), bicubic and nearest_neighbor.

More details in info.magnolia.imaging.operations.cropresize.resizers.BasicResizer

Generated at Mon Feb 12 04:55:36 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.