Simple image resize

Released 6 years ago , Last update 6 years ago

A class for resizing images. Can be used manipulate width and height for images for application images, website images and other use-cases

The class contain an easy to use method that operates on an image stream and resizes it to the given dimensions.

Example:

package sample;

import java.io.IOException;
import resizeimage.ResizeImage;

/**
 *
 * @author Marcelo Silva
 */
public class ResizeImageSample {
    public static void main(String... args) {
        //The original image is 1024X768 in JPEG format. 
        new ResizeImageSample().test();
    }

    public void test() {
        try {
          // Resizing the image into a 600X400 PNG image
          ResizeImage.resizeImage( this.getClass().getResourceAsStream("test.jpg"), 600, 400, "png","testResizeImage","C:\\test\\");
        } catch (IOException ex) {
            ex.printStackTrace();
        }
    }
}
5.0
  • 5 2
  • 4 0
  • 3 0
  • 2 0
  • 1 0
2 Reviews Read Reviews

Pricing

14 day 14-day money-back guarantee

FREE

Personal License

  • Perpetual license

  • Unlimited projects

  • Can distribute code and binary products

  • Commercial use

License » Personal License Download

Get A Quote

What do you need?
  • Custom development
  • Integration
  • Customization / Reskinning
  • Consultation
When do you need it?
  • Soon
  • Next week
  • Next month
  • Anytime

Thanks for getting in touch!

Your quote details have been received and we'll get back to you soon.


Or enter your name and Email
  • C Chandan 1 year ago
    Wasn't opening with Windows zip, however opened with 7-zip, and works well. Thanks for posting.
  • J Jesse 2 years ago
    I also cannot unzip the file unfortunately after trying multiple downloads, still no luck
  • AT antonio tari 2 years ago
    same problem here: Cannot unzip the file, It says in folder invalid or corrupted