Bug 145810 - Insert picture to table cell will not increase table row height if picture width does not exceed table column width (for png-images)
Summary: Insert picture to table cell will not increase table row height if picture wi...
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
7.2.1.2 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Writer-Images
  Show dependency treegraph
 
Reported: 2021-11-21 11:30 UTC by Rainer Bielefeld Retired
Modified: 2023-11-16 11:56 UTC (History)
4 users (show)

See Also:
Crash report or crash signature:


Attachments
Test kit (3.62 MB, application/x-zip-compressed)
2021-11-21 12:14 UTC, Rainer Bielefeld Retired
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Rainer Bielefeld Retired 2021-11-21 11:30:59 UTC
Steps how to reproduce with Installation of Version:7.2.1.2 (x64); Build ID: 87b77fad49947c1441b67c559c339af8f3517e22; CPU threads: 12; OS: Windows 10.0 Build 19042; UI render: Skia/Raster; VCL: win; Locale: de-DE (de_DE); UI: de-DE; Calc: threaded  |  my default User Profile:

0. From Test kit open "NewSample.odt"
1. From WIN Files Explorer drag and drop "field-kitchen-1714153_1920_small.png"
   To most top table
   Expected: row hight adapted to picture hight
   Actual: row height keeps as it is                  😥

For next test close writer without saving

10. From Test kit open "NewSample.odt"
11. From WIN Files Explorer drag and drop "field-kitchen-1714153_1920.png"
   To most top table
   Expected: row hight adapted to picture hight
   Actual: as expected                                👌

a) Vague suspect: Problem from (1) has to do with relation between picture width and table column width.

Additional tests:
If you redo test from step 0, but drag and drop to left cell of second table, row height will be adapted. That underpins my suspect. 

Close writer without saving and 
20. From Test kit open "NewSample.odt"
21. From WIN Files Explorer drag and drop "chicken_small.jpg"
   To most top table
   Surprise: row hight adapted to picture hight        ⁉
   
b) Related to different handling between .jpg and .png. Both sampeld pictures have 640 px width
Comment 1 Rainer Bielefeld Retired 2021-11-21 12:14:34 UTC
Created attachment 176399 [details]
Test kit
Comment 2 Rainer Bielefeld Retired 2021-11-21 12:34:54 UTC
This one probably is related to Bug 145807 or even is the root of tht one.
Comment 3 Dieter 2021-12-07 07:33:42 UTC
I confirm it with

Version: 7.2.4.1 (x64) / LibreOffice Community
Build ID: 27d75539669ac387bb498e35313b970b7fe9c4f9
CPU threads: 4; OS: Windows 10.0 Build 19044; UI render: Skia/Raster; VCL: win
Locale: de-DE (de_DE); UI: en-GB
Calc: CL

I agree with your theory, Rainer. If you increase the size of the picture after you additional test and drag it to the top table, it works (width of the picture is more or less wifht of the table cell.
Comment 4 Dieter 2021-12-07 07:38:16 UTC
Perhaps related to bug 105302 (had no time to check it)