Bug 125398 - VIEWING: Certain image shows borders if you change zoom level (with View - Text Boundaries active)
Summary: VIEWING: Certain image shows borders if you change zoom level (with View - Te...
Status: RESOLVED NOTABUG
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
6.0.0.3 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: bibisected, regression
Depends on:
Blocks: Zoom
  Show dependency treegraph
 
Reported: 2019-05-20 16:29 UTC by griffinit
Modified: 2022-01-05 10:20 UTC (History)
5 users (show)

See Also:
Crash report or crash signature:


Attachments
Document with inserted images at varying zoom levels (29.92 KB, image/gif)
2019-05-23 18:47 UTC, griffinit
Details
An image to insert in LibreWriter to see Shadow (2.48 KB, image/jpeg)
2019-06-04 16:28 UTC, griffinit
Details

Note You need to log in before you can comment on or make changes to this bug.
Description griffinit 2019-05-20 16:29:01 UTC
Description:
Shadow, when shadow not set, shows on inserted images in doc/pdf files if below 100% zoom.

Steps to Reproduce:
1. Create an image. Do not use shadow option.
2. Open or create a doc or pdf file in Writer and insert image
3. Zoom below 100%

Actual Results:
Image has shadow lines

Expected Results:
No shadow lines


Reproducible: Always


User Profile Reset: No



Additional Info:
Reproduced by ebot when discussed on forum, they worked out the zoom issue
Comment 1 raal 2019-05-21 04:34:11 UTC
Hello,

Thank you for filing the bug. Please send us a sample document, as this makes it easier for us to verify the bug. 
I have set the bug's status to 'NEEDINFO', so please do change it back to 'UNCONFIRMED' once you have attached a document.
(Please note that the attachment will be public, remove any sensitive information before attaching it.)
How can I eliminate confidential data from a sample document?
https://wiki.documentfoundation.org/QA/FAQ#How_can_I_eliminate_confidential_data_from_a_sample_document.3F
Thank you
Comment 2 griffinit 2019-05-22 03:12:16 UTC
I am using Windows 10 - I don't know how to provide foo/bar - I have a .docx document which shows the problem but it keeps asking for foo/bar instead.
Comment 3 Xisco Faulí 2019-05-23 08:15:00 UTC
(In reply to griffinit from comment #2)
> I am using Windows 10 - I don't know how to provide foo/bar - I have a .docx
> document which shows the problem but it keeps asking for foo/bar instead.

Hello,
Please provide the .docx file mentioned then
Comment 4 griffinit 2019-05-23 18:47:19 UTC
Created attachment 151637 [details]
Document with inserted images at varying zoom levels



This document shows how shadow (when not set in image) appears on inserted images, and zoom level at which it disappears. In this case this was 200%.

The document contains screenshots taken of LibreOffice Writer documents (4) with image inserted, then set at varying zoom levels.
Comment 5 Dieter 2019-05-29 11:52:46 UTC
Please attach either the document itself or the image file. Thank you.
Comment 6 griffinit 2019-05-30 16:36:01 UTC
I did. In my previous message.  attachment 151637 [details] 

I don't know what more I can do to demonstrate it.

Really, you need to create an image (save selection). Then in LibreWriter new document. Insert the image. Then play around with Zoom levels - at some level(s) you will see the bug.

If my attachment was no use - that is what you need to do.
Comment 7 Dieter 2019-05-31 08:02:21 UTC
(In reply to griffinit from comment #6)
> I did. In my previous message.  attachment 151637 [details] 

Attachment in comment 4 is not a document but an image.
Comment 8 Xisco Faulí 2019-05-31 09:44:43 UTC
(In reply to Dieter Praas from comment #7)
> (In reply to griffinit from comment #6)
> > I did. In my previous message.  attachment 151637 [details] 
> 
> Attachment in comment 4 is not a document but an image.

Yes, please provide the document itself, not an image of the problem
Comment 9 griffinit 2019-06-03 15:37:19 UTC
It is not possible to supply a document like that.

The image in the document (docx) attachment I supplied shows the error where zoom levels are varied. There is no other way of showing the error.

You have to create the document yourself to see the error for yourself.

It's quite simple.

Create an image. Save it as "save selection".

Open LibreWriter new document.

Insert image.

Vary the zoom level.

At some zoom levels you will see the shadow. At other zoom levels you won't.

Please do this. It is not difficult. Stop pestering me for something that is impossible. If you follow those instructions you will see why your requests are impossible.
Comment 10 QA Administrators 2019-06-04 02:51:38 UTC Comment hidden (obsolete)
Comment 11 Dieter 2019-06-04 07:06:48 UTC
(In reply to griffinit from comment #9)
> It is not possible to supply a document like that.
> 
> The image in the document (docx) attachment I supplied shows the error where
> zoom levels are varied. There is no other way of showing the error.
> 
> You have to create the document yourself to see the error for yourself.

I can't reproduce it with an own image. So please at least attach the image you used. Back to NEEDINFO.
Comment 12 griffinit 2019-06-04 16:28:29 UTC
Created attachment 151914 [details]
An image to insert in LibreWriter to see Shadow

Ok. Here is the image which I see a shadow on.
Comment 13 Dieter 2019-06-04 17:09:42 UTC
Steps

1. Open Writer
2. Insert => Image => Insert Image from attachment 12 => everything looks fine
3. change zoom level => thin line on the right and / or at the buttom appears and disappears

Additional information:
if you add several copies of that image, you can get different results at the same zoom-level
PDF Export is fine

Version: 6.3.0.0.beta1 (x64)
Build ID: a187af327633f5f00363be5131bd21a13e0f1a7b
CPU threads: 4; OS: Windows 10.0; UI render: default; VCL: win; 
Locale: en-US (de_DE); UI-Language: en-GB
Calc: threaded
Comment 14 Xisco Faulí 2019-06-11 10:44:02 UTC
Not reproduced in

Version: 5.3.0.0.alpha1+
Build ID: 4136757b4e51c4e6f7cb4132c95538a7f831ef2c
CPU Threads: 4; OS Version: Linux 4.15; UI Render: default; VCL: gtk3; Layout Engine: new; 
Locale: ca-ES (ca_ES.UTF-8); Calc: group
Comment 15 Buovjaga 2020-05-04 18:02:56 UTC
Bibisected with Linux 6.0 repo to range https://git.libreoffice.org/core/+log/51ee0c5ba6b0ffcd4b12e652de48e3f775cccc7d..d74b26b41bfea3ba7a1834953b2bfe9b7ff0d70f

All commits are about RotateFlyFrame3

Note that the borders are not seen, if you turn off View - Text Boundaries

I still repro with latest master

Adding Cc: to Armin Le Grand
Comment 16 Armin Le Grand (allotropia) 2021-12-16 09:18:37 UTC
Took a look to see if I can reproduce - the last comments show more that it cannot be reproduced? Used the image provided in comment 12.

I get a slight gray edge on the right. If that is meant, this is no shadow. It is a highly system-dependent obstacle of painting a pixel-based bitmap to a pixel-based target in a AA-based in-between-pixel position. So - no model data, just display quirks.

In that step the backend AKA system-graphics-layer outside LO scales the image to get it where it is commanded to be painted. The choosen color for filling up the possible 'gap' is up to that target graphics system.

It would be nice if these systems would use the BG color (what may require read access what many systems do not have anymore nowadays).

It would be inside our influence to render all BM as having an alpha channel, then those systems may (no guarantee) use the correct BG color due to scaling BM+alpha and keeping that 'gap' semi-transparent (it's a sub-pixel, never gets the size of one full pixel). That would be potentially massively more expensive.

You may try on different LO backends to see different behaviours.
-> nothing we can do about that would have predictable results (system. backend, even version of GS on backend) or is not expensive I fear