title: Generate thumbnail in Java
body: <p>I would like to know if I can generate thumbnail with proper aspect ratio for an image in Java without using any third party libraries. If not then kindly suggest a fast and efficient open source library to generate thumbnails with proper aspect ratio.</p>
  
  <p>With proper aspect ratio I mean if the image is very large lets say <code>1900 X 1080</code>, then the thumbnail should not just be a resized version of the original image (hence resulting a compressed look or improper image), rather it should be properly cropped and resized resulting in a clean view.</p>
  
  <p>Note: The size of the thumbnail would be constant for image of any size.</p>