[MGNLIMG-196] imaging standard resizer gives poor results Created: 16/Dec/16  Updated: 06/Oct/23

Status: Open
Project: Imaging
Component/s: image operations
Affects Version/s: 3.4.4
Fix Version/s: None

Type: Improvement Priority: Neutral
Reporter: Karel de Witte Assignee: Unassigned
Resolution: Unresolved Votes: 1
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: Java Source File ViImageResizer.java     JPEG File after-resize.jpg     JPEG File before-resize.jpg     JPEG File laptop-resize.jpeg    
Issue Links:
Problem/Incident
relation
Template:
Patch included:
Yes
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:

 Description   

Implement multiple image resizing as standard for image re-sizer class.

Here are some sample of how the quality varies between using our imaging resize vs what results my laptop produces.

Laptop

Imaging module at 100% quality

Just flipping through the dam's tour images with Q=100% you can see the images generated for the "portrait" cut (config:/modules/imaging/config/generators/portrait) really don't turn out so sharp.

See https://www.baeldung.com/java-resize-image. Currently we use Graphics2D in our MultiStepResizer.

Attached code is very rough does not do the cropping ViImageResizer.java


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