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.

skaffman
  • 398,947
  • 96
  • 818
  • 769
danny.lesnik
  • 18,479
  • 29
  • 135
  • 200
  • 1
    May be this link is helpful http://stackoverflow.com/questions/603283/what-is-the-best-java-image-processing-library-approach – Ankit May 11 '11 at 11:02

2 Answers2

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

Barak Itkin
  • 4,872
  • 1
  • 22
  • 29
0

I found thumbnailator to be very good.

Millad
  • 1,535
  • 1
  • 16
  • 17