2

1) Load picture from byte array.

2) Verify it's current picture size.

3) Resize Picture according to my needs.

Is there any out of the box Java Framework which can help me to do it?

Thanks in advance.

1

2 Answers 2

3

Actually, java's default packages should be enough:

  1. To load an image use javax.imageio.ImageIO.read(...)
  2. To get it's size use the getWidth() and getHeight() of the returned BufferedImage object
  3. To resize the image, you can: Create a new image (BufferedImage), acquire it's Grahpics objects, set the transformation, and then draw the original image.

Refer to the java working with images tutorial

Sign up to request clarification or add additional context in comments.

Comments

0

I found thumbnailator to be very good.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.