I want to convert large images into thumbnails but also want to maintain the aspect ratio. In this link they convert the images into thumbnails but they use JPEGCodec
and JPEGImageEncoder
classes, which I think are deprecated.
Oracle provide some new library to deal with images. So how to convert images into thumbnail using new libraries?