I need some smart enough thumbnail generation lib to use it in my java app. I've found appropriate code here but I'm not sure about possible licensing issues.
Are there any free appropriate libraries?
I need some smart enough thumbnail generation lib to use it in my java app. I've found appropriate code here but I'm not sure about possible licensing issues.
Are there any free appropriate libraries?
I've checked his site and there's no mention of license. That could mean trouble. At least in Italy where I live because if there's no explicit permission you can't use works that are not yours.
I would suggest to read this question: http://stackoverflow.com/questions/169573/open-source-java-library-to-produce-webpage-thumbnails-server-side
If you split the task "create thumbnail" into three steps, "load image", "scale image" and "save image", you can do it with the standard Java API. You can use the static utility methods in javax.imageio.ImageIO
to load and save images and use Image#getScaledInstance(...)
to resize the original image. Since the Image
you get from getScaledInstance
is not a BufferedImage
, you have to create a new BufferedImage
with the correct size and paint the scaled image into the new BufferedImage
before you can use ImageIO to save it.