Bug 137611 - Contour on a picture not saved, if "wrap through" is selected (steps in comment 6)
Summary: Contour on a picture not saved, if "wrap through" is selected (steps in comme...
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
7.0.0.3 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Anchor-and-Text-Wrap Contour-Editor
  Show dependency treegraph
 
Reported: 2020-10-20 08:03 UTC by Nicolas Christener
Modified: 2020-11-05 10:21 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:
Regression By:


Attachments
Example document showing the issue (905.83 KB, application/vnd.oasis.opendocument.text)
2020-10-20 08:04 UTC, Nicolas Christener
Details
Original picture which seems to trigger the issue (84.38 KB, image/jpeg)
2020-11-05 08:47 UTC, Nicolas Christener
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Nicolas Christener 2020-10-20 08:03:26 UTC
Description:
When applying a contour to a picture and saving the document, the contour seems to be lost after opening the document again.

Steps to Reproduce:
1. Right click on image
2. Wrap > Edit Contour…
3. Make a circle contour, apply and close
4. The picture is a circle now
5. Save document
6. Close document
7. Open the document again


Actual Results:
Picture is shown square again

Expected Results:
Picture should be shown as a circle


Reproducible: Always


User Profile Reset: No



Additional Info:
Please see the attached example.
Comment 1 Nicolas Christener 2020-10-20 08:04:00 UTC
Created attachment 166528 [details]
Example document showing the issue
Comment 2 Dieter 2020-11-05 08:14:44 UTC
I can't confirm it with an own image or with the screenshot in your attachment, but I can confirm it with the first image in your attachment

Version: 7.0.3.1 (x64)
Build ID: d7547858d014d4cf69878db179d326fc3483e082
CPU threads: 4; OS: Windows 10.0 Build 19042; UI render: Skia/Raster; VCL: win
Locale: de-DE (de_DE); UI: en-GB
Calc: threaded

So I assume it depends on the image. Does it have a special format or is there anything else special, that might cause the issue?
Comment 3 Nicolas Christener 2020-11-05 08:45:46 UTC
Thanks @Dieter for having a look at this.

The picture is not really "special", I think it was made using an iPhone (some years ago).

But Gimp tells me, that it has an embedded color profile - maybe this triggers the issue (just a wild guess).

I'll add the original picture to BZ as well and will make some more tests.
Comment 4 Nicolas Christener 2020-11-05 08:47:32 UTC
Created attachment 167022 [details]
Original picture which seems to trigger the issue

Based on the feedback of Dieter it seems, that it's not a general issue and only certain pictures actually trigger the problem. I therefore add the original file for testing purpose as well.
Comment 5 Nicolas Christener 2020-11-05 08:54:59 UTC
Hi Dieter

I think I found the "trick" - it's not about the picture itself.

This is the way how I can trigger it:
* insert picture
* right click on the picture > Wrap > Wrap Through
* right click on the picture > Wrap > Edit Contour... > "draw" circle and accept, close dialog
* save document
* close document
* open docuemt again

Result: contour will be lost

The "magic" button that triggers the issue is "Wrap Through".

Can you recheck if this happens in your installation as well?
Comment 6 Dieter 2020-11-05 10:21:17 UTC
(In reply to Nicolas Christener from comment #5)
> Can you recheck if this happens in your installation as well?


Yes, that's it!

Steps to reproduce
1. Open document with image
2. Select image => context menu => wrap => wrap through
3. Wrap > Edit Contour…
4. Make a circle contour, apply and close
4. The picture is a circle now
5. Save document
6. Reload document

Actual Results:
Picture is shown square again

Expected Results:
Picture should be shown as a circle