0

I am wondering if there is a way to load up a image and trim the white space of it?

like imagemagik for php have that feature but for java wonder if there is anything that can trim white space

2
Contributors
3
Replies
4
Views
9 Years
Discussion Span
Last Post by Ezzaral
0

There is a Java interface to ImageMagik that you could use if you want a third-party solution. Other than that, you would need to perform the image analysis yourself to isolate the sub-region and create the new image from it. The Advanced Imaging API would be useful for that.

so there is no class that can just do like .trim(BufferedImage) ?

the advanced imaging api I not sure if there is a function to let it trim a image. Or what class in the api to look for it.

Anyone have a better clue on how to do it?

0

No, there isn't a specialized operation like that. It's a generic image manipulation API - not Photoshop.

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.