[MGNLIMG-34] resizing: the provided resizing has less quality than achieved by a manual resize operation Created: 12/May/09  Updated: 04/Dec/13  Resolved: 26/May/09

Status: Closed
Project: Imaging
Component/s: None
Affects Version/s: None
Fix Version/s: 2.0

Type: Improvement Priority: Major
Reporter: Philipp Bärfuss Assignee: Magnolia International
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: JPEG File manual.jpg     JPEG File org.jpg     JPEG File resized.jpg    
Issue Links:
relation
is related to MGNLETK-36 STK/ETK integration and transparent i... Closed
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:

 Description   

See the white table of the attached example images. The quality of the output format is already set to 100.



 Comments   
Comment by Magnolia International [ 26/May/09 ]

One can now configure a Resizer in all implementations of AbstractCropAndResize - 3 implementations are provided, see the info.magnolia.imaging.operations.cropresize.resizers package.

Comment by Boris Kraft [ 26/May/09 ]

Did anybody look at GraphicsMagick?

"GraphicsMagick is a robust collection of tools and libraries which support reading, writing, and manipulating an image in over 90 major formats including popular formats like TIFF, JPEG, JPEG-2000,PNG, PDF, PhotoCD, SVG, and GIF. A high-quality 2D renderer is included, which provides a subset of SVG capabilities. C, C++, Perl, Tcl, and Ruby are supported. Originally based on ImageMagick, GraphicsMagick focuses on performance, minimizing bugs, and providing stable APIs and ABIs. It runs on all modern variants of Unix, Windows, and Mac OS X."

I am not sure how access from java is possible, but otherwise this looks rock solid. It is used e.g. for Flickr

-> http://www.graphicsmagick.org/

Comment by Magnolia International [ 26/May/09 ]

Much like ImageMagick, it's a native library; unlike ImageMagick, it doesn't seem to have a Java API.
In both cases:

  • the Resizer mentioned above is an interface meant to allow using different algorithms for resizing the images
  • it wouldn't be / shouldn't be hard to implement support for it, if they provide a bridge with the JDK APIs (as opposed to working only through the filesystem, pipes and streams)
  • it's usually quite a pita to get these things working seamlessly on different systems.

IF there's ever a request for quality so pressing that shows unilaterally that using such a library would give unilaterally better results from either or both the quality or the performance point of view, it'll still be possible to investigate further In the meantime, I'm pretty confident that the current implementations will suffice for most cases.

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