Bug 44692 - HSSFPicture.resize() is correct only if the rows/columns have the default height/width
Summary: HSSFPicture.resize() is correct only if the rows/columns have the default hei...
Status: RESOLVED FIXED
Alias: None
Product: POI
Classification: Unclassified
Component: HSSF (show other bugs)
Version: unspecified
Hardware: PC All
: P2 normal with 2 votes (vote)
Target Milestone: ---
Assignee: POI Developers List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-03-27 09:33 UTC by Yegor Kozlov
Modified: 2008-08-05 01:09 UTC (History)
3 users (show)



Attachments
Contains a xls, java code and png file (516.33 KB, application/octet-stream)
2008-07-23 23:12 UTC, Vladimir Ganev
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Yegor Kozlov 2008-03-27 09:33:37 UTC
A followup from Bug 27153 reported by Laurent Poublan:  

If I create a picture on a patriarch and call resize() on it, the resizing is
correct ONLY IF the rows/columns have the default height/width.
If the columns/rows width/height have been changed (before calling resize()),
the resize does not set the image to its original size (proportions are
modified).
I understand that changing cols/rows sizes after can alter images size, but I
think HSSFPicture.resize() should always resize the image correctly.
Comment 1 Stefan Minchev 2008-05-17 01:32:54 UTC
Could someone provide us with work around about this problem?
Comment 2 Dominic Adatia 2008-05-29 09:21:24 UTC
Anyone managed to work around this yet?
Comment 3 Yegor Kozlov 2008-06-08 08:31:53 UTC
Fixed in r664515. This change will be included in 3.1-final.

Yegor
Comment 4 Vladimir Ganev 2008-07-22 13:08:09 UTC
Still does not work correctly. If there are cells containing some text next to the image, the latter becomes unrecognizable - stretched vertically.
Comment 5 Yegor Kozlov 2008-07-22 22:46:51 UTC
(In reply to comment #4)
> Still does not work correctly. If there are cells containing some text next to
> the image, the latter becomes unrecognizable - stretched vertically.
> 

Can you provide a sample ppt and java code to reproduce it?

Yegor
Comment 6 Vladimir Ganev 2008-07-23 23:12:29 UTC
Created attachment 22310 [details]
Contains a xls, java code and png file

Image is stretched when there is a text next to it.
Comment 7 Yegor Kozlov 2008-08-05 01:09:37 UTC
fixed in svn r682621.

Default row height was wrongly interpreted and caused vertical stretching.