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?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
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.ImageIOto load and save images and useImage#getScaledInstance(...)to resize the original image. Since theImageyou get fromgetScaledInstanceis not aBufferedImage, you have to create a newBufferedImagewith the correct size and paint the scaled image into the newBufferedImagebefore you can use ImageIO to save it.