Bug 58716 - Picture.resize() is slow as image is read for dimensions again
Summary: Picture.resize() is slow as image is read for dimensions again
Status: NEEDINFO
Alias: None
Product: POI
Classification: Unclassified
Component: XSSF (show other bugs)
Version: 3.13-FINAL
Hardware: PC Mac OS X 10.1
: P2 enhancement (vote)
Target Milestone: ---
Assignee: POI Developers List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-12-10 11:18 UTC by Aman Kapur
Modified: 2015-12-31 08:47 UTC (History)
0 users



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Aman Kapur 2015-12-10 11:18:46 UTC
In Picutre.resize() -> Picture.getPreferredSize() -> ImageUtils.getImageDimension() the image is read once again. Requesting enhancement to pass in Dimensions of the image before hand to avoid a slow read operation only to get dimensions.

More Info on use case: http://stackoverflow.com/questions/34150804/apache-poi-xssfpicture-resize-too-slow-for-multiple-images-in-a-xssfsheet
Comment 1 Dominik Stadler 2015-12-31 08:47:52 UTC
Any chance you could produce a patch for this together with some unit-tests to cover the new functionality?