Moiré patterns on resized images

Image scaler add-on.
Post Reply
jamielongstaff
Posts: 1
Joined: Sun May 18, 2008 4:11 pm

Moiré patterns on resized images

Post by jamielongstaff »

I've been having an issue with a Moiré type pattern (http://en.wikipedia.org/wiki/Moire) appearing on resized images create by JImageFilter. In the two images shown below, one was resized using bicubic interpolation in Photoshop while the other one was created using JImageFilter. As you can see there is a distinct Moiré pattern on the police officer's utility belt in the second image and it would be great to have a fix for this as it can be quite distracting..!

Resized in Photosop
belt_photoshop.jpg
Created with Photoshop
(5.34 KiB) Downloaded 293 times
Resized with JImageFilter
belt_java.jpg
Created with JImageFilter
(7.83 KiB) Downloaded 288 times
Thanks for looking into it!

Jamie

http://www.pixaria.com/

User avatar
support
Posts: 1503
Joined: Sun Jan 27, 2008 6:19 pm

Re: Moiré patterns on resized images

Post by support »

Moiré pattern could be avoided by uncommenting "impl=awt" in scaling.properties. Scaling is around twice slower than default implementation (imageio) but image quality is best. We've implemented a new multi-step imageio bilinear scaling algorithm in 2.1, it provides quality/speed in the middle performance of imageio and awt.

You can find a tutorial with samples about image quality and parameters recommendations at:
http://www.jfileupload.com/products/jim ... ality.html

Post Reply