Is it possible to extract an image's information from an xls spreadsheet using Apache POI?
In one of my projects, I need to read some images from a .xls file. I can read all images together, but how can I get images position (like columns and rows number or coordinates)? Otherwise I can get images position but I can't know information, like picture name or extension or others, about a specific image at the positions found. How I can get images and positions too?
Here read all images... and here get images positions...
I hope this code will help)
And if you don`t want to use iterator (cause some times they are heavy)
Have a look here:
http://poi.apache.org/components/spreadsheet/quick-guide.html#Images
Sample:
After this, you can use tools like ImageInfo which extends Magick to find out various configs. Yo can even convert images to different sizes.
Take a look at this class as well:
http://blog.jaimon.co.uk/simpleimageinfo/SimpleImageInfo.java.html
-- Hope this helps