I wanted o know whether it’s possible to compress a given image to a predefined size in apache POI.
Say I have an input image of 500X500, and I want to convert to a thumbnail size (40X40), can I do it in apache POI?
if not, does java library provide any image processing capabilities?
Right now, I was able to embed images using apache POI, but I have no control over forcing the image to be with in a certain cell size.
Thanks.
The Picture interface in POI has resize methods as in the Javadocs
Use either the
HSSFPictureorXSSFPictureimplementations