About 1,370,000 results
Open links in new tab
  1. swing - Resizing image in Java - Stack Overflow

    May 21, 2019 · If you have an java.awt.Image, resizing it doesn't require any additional libraries. Just do: Image newImage = yourImage.getScaledInstance(newWidth, newHeight, Image.SCALE_DEFAULT); Obviously, replace newWidth and newHeight with the dimensions of the specified image.

  2. How Can I Resize an Image Using Java? - Baeldung

    Mar 26, 2025 · In this tutorial, we’re going to learn how to resize (scale) an image using Java. We’ll explore both core Java and open-source third-party libraries that offer the image resize feature. It’s important to mention that we can scale images both up and down.

  3. 3 Ways to Resize Images in Java - Cloudinary

    Apr 11, 2025 · Java provides several techniques for programmatic bulk image resize, including the getScaledInstance () method and the Graphics2D class. We’ll also show how to use Cloudinary to resize images in Java while automatically adjusting the …

  4. How to reduce image file size in java - Stack Overflow

    Dec 15, 2010 · I want to reduce image file size of an uploaded image before saving it into server (to reduce loading time). how can I do it using java?

  5. JAVA Complete Code to Resize Images - tutorialspedia.com

    In this tutorial, you will get complete Java Code to Resize Images using java.awt.image package javax.imageio package to resize pictures.

  6. How to resize an image in Java - Mkyong.com

    Sep 29, 2009 · This article shows two ways to resize an image (create a thumbnail) in Java. 1. Original Image, 544×184. Below is a Google logo image, width, height 544x184, and file size 14k. Later, we will resize the below image to a new width and height 300x150. 2. Resize an image or create a thumbnail.

  7. Resize Images in Java | Resize PNG, JPG, GIF, SVG | Aspose

    Nov 22, 2021 · Use Java image processing API to resize images in Java. Resize raster or vector images using different resizing techniques. Resize image proportionally.

  8. Resize Images in Java | Scale Raster & Vector Images Easily

    Feb 13, 2025 · Learn how to resize images in Java. Scale raster and vector images while maintaining quality. Resize PNG, SVG, and more with Java.

  9. How to resize an image in Java - StackHowTo

    Aug 5, 2021 · In Java, to resize (or scale) an image and save it, we can follow these steps: Create a BufferedImage object for the input image by calling the read() method of the ImageIO class. Create a BufferedImage object for the output image with a desired width and height.

  10. how to resize Image in java? - Stack Overflow

    Mar 21, 2013 · You can apply the method mentioned by for3st directly to the original BufferedImage image ('image') and set the width and height you wish for it. Thus a single statement is only needed (included in stadard Java documentation):

  11. Some results have been removed
Refresh