At Thumbnailator , I make thumbnails.
If the image size is 400 * 300, and if I do the following,
Thumbnails.of(new File("original.jpg")) .size(160, 160) .toFile(new File("thumbnail.jpg"));
he creates a sketch of 160 * 120.
What I want, if I upload 400 * 300 images, it will center the scale so that I become 300 * 300, and then it will be thumbnails.
I looked through the documentation. Even I posted the same thing in a comment, but no luck.
source share