
ImageResize4J offers 24 interpolation filters for high-quality image resize and scaling. Interpolation filter selection depends on a current task: the fastest interpolation filter is the NEAREST_NEIGHBOR and the most qualitative are IDEAL filter families and SHARP (SHARP_LIGHT/SHARP_MORE) filter families. Other interpolation filters are the balance between speed & quality.
! SHARP (SHARP_LIGHT/SHARP_MORE) filter families are the most appropriate solution for producing sharp and nice-looking photo thumbnails.
! Interpolation filters with more length are more qualitative but slower.
//source image
|
| TOP |
//source image
|
| TOP |
//source image
|
| TOP |
//source image
|
| TOP |
To produce high-quality thumbnails from large images with an appropriate speed s.c. "two phase" approach may be used:
The below results demonstrate the advantage of such approach (example source code, source image):
| 1-Phase Java2D Bicubic | 1-Phase IR4J Nearest Neighbor | 1-Phase IR4J Sharp 5 | 2-Phase IR4J Nearest Neighbor/Sharp 5 |
|---|---|---|---|
| 72x96 thumbnails | |||
Average processing: 1014ms |
Average processing: 128ms |
Average processing: 1140ms |
Average processing: 139ms |
| 96x128 thumbnails | |||
Average processing: 1012ms |
Average processing: 121ms |
Average processing: 1107ms |
Average processing: 169ms |
| 120x160 thumbnails | |||
Average processing: 1114ms |
Average processing: 119ms |
Average processing: 1014ms |
Average processing: 202ms |
Copyright © 2007-2008 Gif4J Software | All Rights Reserved
Privacy Policy | Legal Information | W3C XHTML 1.0 | W3C CSS 2.0