Skip to content

Missed setup of RENDERING_HINTS at ProgressiveBilinearResizer.java #107

@LiomSV

Description

@LiomSV

Look at net.coobird.thumbnailator.resizers.ProgressiveBilinearResizer line 74.
In case when multi-step downscaling is not required and one-step scaling is performed, it doesn't set RenderingHints to destination image.

It doesn't matter when you don't use the resizer directly, because resizer factory doesn't return this one in case of such image. But direct usage leads to worse quality, because no any interpolation hint is set.

So, my suggestion is to add:
g.setRenderingHints(RENDERING_HINTS);
after line 74 into ProgressiveBilinearResizer.java

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions