Bug 95969 - Wrapping contour trims/crops/clips an image like a image mask
Summary: Wrapping contour trims/crops/clips an image like a image mask
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
Inherited From OOo
Hardware: All All
: medium minor
Assignee: Not Assigned
URL:
Whiteboard: interoperability
Keywords:
Depends on:
Blocks: Contour-Editor
  Show dependency treegraph
 
Reported: 2015-11-21 14:18 UTC by Mike Kaganski
Modified: 2021-12-03 07:20 UTC (History)
4 users (show)

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


Attachments
A document with contour clipping image (25.44 KB, application/vnd.oasis.opendocument.text)
2015-11-21 14:18 UTC, Mike Kaganski
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Mike Kaganski 2015-11-21 14:18:29 UTC
Created attachment 120701 [details]
A document with contour clipping image

When using contour wrap, the contour not only defines how the text flows around the graphic (possibly overlapping some parts of it), but also crops the graphic itself, making parts of it outside the contour invisible.

Steps to reproduce:
1. Create a new Writer document, insert an image (JPG/PNG/...) into it.
2. Right-click the image, Wrap->Page Wrap, Wrap->Enable Contour, Wrap->Edit Contour...
3. Delete existing automatic contour (if any, use Del), and draw arbitrary new contour that makes some visible part of image outside (end polyline contour with double-click). Apply the change (checkmark in top-left corner of edit box) and return to document.

You will see that the contour cropped the image.

That is not a requirement of the standard (ODF 1.2 doesn't specify that draw:contour-polygon has any other meaning than specifying wrapping of text), and it makes impossible to create some effects, e.g. making a graphic with a light background which is visible and still overlapped with text.

Also, that is inconsistent with MSO handling of wrap contour. That makes it sometimes impossible to import Word files with images correctly: when patch for Bug 60351 is commited, some documents will still be imported with parts of image cropped. In Attachment 78385 [details] from Bug 63851, the last image (Lions International logo) has contour that slightly excludes bottom part of it. In MSO, this doesn't make it clipped, but in LO, it does.

I'm not sure if this qualifies as enhancement request, as this limits interoperation with other office suite, and the tool does things other that it claims to do. Therefore, I let it as bug report.

Also, it should be considered that a number of existing documents may already make yse of this "feature", thus simply removing this side effect could break them. Thus, it could be fixed by using a new setting that turns clipping on/off (either on document level or on image level). That could be on for old documents by default, off for DOC(X) import and new documents.
Comment 1 Buovjaga 2015-11-27 09:14:12 UTC
Repro.

Win 7 Pro 64-bit Version: 5.1.0.0.alpha1+
Build ID: f6bc5b79c31225c02e9500d0ced4bd26f998f82b
Threads 4; Ver: Windows 6.1; Render: default; 
TinderBox: Win-x86@39, Branch:master, Time: 2015-11-24_01:07:47
Locale: fi-FI (fi_FI)
Comment 2 Yousuf Philips (jay) (retired) 2016-09-27 23:31:04 UTC
Tested attachment 120701 [details] in Calligra Words and it does the same thing of removing the section of the image that is outside of the contoured area.

@regina, @jos: Any thoughts on what ODF states on this?
Comment 3 Xisco Faulí 2017-09-29 08:48:57 UTC Comment hidden (obsolete)
Comment 4 QA Administrators 2019-12-03 14:51:07 UTC Comment hidden (obsolete)
Comment 5 QA Administrators 2021-12-03 04:41:40 UTC Comment hidden (obsolete)
Comment 6 Mike Kaganski 2021-12-03 07:20:59 UTC
Repro with Version: 7.2.3.2 (x64) / LibreOffice Community
Build ID: d166454616c1632304285822f9c83ce2e660fd92
CPU threads: 12; OS: Windows 10.0 Build 19043; UI render: default; VCL: win
Locale: ru-RU (ru_RU); UI: en-US
Calc: threaded