1. Products
  2.   Aspose.Imaging
  3.   Java
  4.   Image Resizer

Image Resizing with Java Plugin

Resize images or photos with ease while preserving their original resolution.

Java Image Resizer Plugin

Aspose.Imaging’s Image Resizer Plugin for Java provides simple and efficient methods for resizing images. The Resize method in the Image class enables dynamic resizing of existing images.

How to Resize Images via Java?

  • Reference Aspose.Imaging in your project
  • Set your license keys
  • Load the image with an instance of Image class
  • Call Image.Filter method to set the desired filter
  • Call Image.Save method to save or export the result

Java Image Resizer Prerequisites

Get the respective files from the downloads or fetch the package from Maven to add Aspose.Imaging directly in your workspace.

  • Java Runtime Environment 6 or higher
  • Maven
  • Development environment like Eclipse IDE

Frequently Asked Questions

Can I perform proportional resizing?

Yes, you can achieve proportional resizing with specific ResizeType options using the ResizeWidthProportionally and ResizeHeightProportionally methods.

What is the purpose of the ResizeType enumeration in image resizing?

The ResizeType enumeration allows you to specify the type of resizing filter to be used, affecting the quality of the resized image. It includes options like LanczosResample and NearestNeighbourResample, catering to different performance and quality needs.

How can I resize a webp image?

Plugin supports resizing webp images. You can find an example in the documentation demonstrating how to resize a webp image using the Resize method with specific options.


Support and Learning Resources