Bug 93918 - Insert image in Impress inserts multiple copies
Summary: Insert image in Impress inserts multiple copies
Status: RESOLVED NOTABUG
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: ux-advise (show other bugs)
Version:
(earliest affected)
5.0.1.2 release
Hardware: Other All
: medium minor
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-09-04 09:08 UTC by Uwe Dippel
Modified: 2015-09-13 09:14 UTC (History)
5 users (show)

See Also:
Crash report or crash signature:


Attachments
Very Basic Impress File from scratch (10.62 KB, application/vnd.oasis.opendocument.presentation)
2015-09-04 09:08 UTC, Uwe Dippel
Details
Simple image that fills whole slide at 'insert image' (4.62 KB, image/svg+xml)
2015-09-04 09:09 UTC, Uwe Dippel
Details
Single Image->Insert (42.38 KB, image/png)
2015-09-06 12:20 UTC, Uwe Dippel
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Uwe Dippel 2015-09-04 09:08:02 UTC
Created attachment 118409 [details]
Very Basic Impress File from scratch

[This is a regression]

Inserting an image in an Impress presentation inserts this image in multiples.

Reproduce:
1. Open an Impress file (e.g. basic as in attachment)
2. Select some place where to insert an image inside the slide
3. Open the image file (e.g. from attachment)
4. Result: the whole frame is filled with duplicates of the image

Simple Workaround:
Insert the image outside of the slide and drag it into the desired location on the slide.
Comment 1 Uwe Dippel 2015-09-04 09:09:04 UTC
Created attachment 118410 [details]
Simple image that fills whole slide at 'insert image'
Comment 2 Jean-Baptiste Faure 2015-09-06 12:04:23 UTC
Doing Insert > Image, I do not reproduce the problem.

Please, could you describe in more detail how do you proceed to insert the image?
What is your OS and your CPU (32 or 64 bits)?

Best regards. JBF
Comment 3 Uwe Dippel 2015-09-06 12:20:02 UTC
Open the .odp as attached (or any other)
Open the image as attached (or any other)
Click the text box anywhere, 
Insert->Image
Select the image as above

Result: attached screen shot

OS: Ubuntu, Libreoffice from Libreoffice download, .deb, 64-bit
Comment 4 Uwe Dippel 2015-09-06 12:20:38 UTC
Created attachment 118462 [details]
Single Image->Insert
Comment 5 Jean-Baptiste Faure 2015-09-06 13:52:04 UTC
Insert > Image ask you for an image file. So why the step "Open the image as attached (or any other)"? Open the image with what? LibreOffice?

Best regards. JBF
Comment 6 Uwe Dippel 2015-09-06 13:59:20 UTC
Sorry, that ('open') is supposed to be 
Insert->image
Comment 7 Maxim Monastirsky 2015-09-06 14:06:34 UTC
(In reply to Uwe Dippel from comment #3)
> Click the text box anywhere, 
This is the key step. When you add an image to a textbox, it's used as the background of the textbox. You can control the placement of the image via right click->Area... . Closing as NOTABUG, since it works as designed.
Comment 8 Uwe Dippel 2015-09-06 17:42:29 UTC
Why does everyone always invent features without activating their good old nerd brain? FOSS has always been about straightforward, and being in control. 
Why does everyone try to imagine what I want to do, nannying me?

No, that's not okay (to assume that I want the image as background). If I click 'insert->image' and nothing else that's exactly what I want to do. 
If it is as you say, which is principally a good OPTION, an option 'insert->image [as background]' is the right thing to offer; not override the obvious.
Comment 9 Jean-Baptiste Faure 2015-09-06 18:19:27 UTC
What does mean inserting an image inside a text box in a presentation?
For me text box is for text, not for image.
Please, could you explain your workflow and the result you want?

Best regards. JBF
Comment 10 Uwe Dippel 2015-09-06 20:07:16 UTC
Thanks for asking! I am new to (the new) Libreoffice, so to say, so I am not used to a program that tries to do the thinking for me.
My workflow, to call it that, is to produce slides for my lectures and I usually just open a new slide (or duplicate the previous one) with either one text box or 2 in as columns. Then - and that is what I was able to do until now - write some text into the box and add some drawing, or just put a drawing, resize it so that I can add some remarks, sentences, or such. Some of the boxes contain only drawing or only text. 

I know, and wrote, the simple workaround: clicking some place outside the slide ('workbench') and then insert->image, and then drag the image into the textbox. It is possible, though a bore. Why can't I click where I want the image and insert->image and actually get it there??
If one wanted it as background, and tiled(!) I'd prefer that one has to say so. I don't want any developer to be able to take such an arbitrary decision for the user. Maybe someone wants all images inserted to be scaled? or cropped? 
What a nonsense!

It is somewhat similar to the 'clever' behaviour of (the new) LibreOffice filed as bug as well, that I cannot prevented it from scaling and snapping any image into a chosen layout (bug 93924). 
These really put me off from liking LibreOffice as much as I would.
Comment 11 Maxim Monastirsky 2015-09-06 20:23:33 UTC
(In reply to Uwe Dippel from comment #10)
> Some of the boxes contain only drawing or only text.
A textbox is not able (and was never able) to contain an image. The best you can do is to place the image on top of the textbox, not inside.

> I know, and wrote, the simple workaround: clicking some place outside the
> slide
What you actually need is to make sure that the textbox isn't selected. So you can also click anywhere in the slide.

> Why can't I click where I want the
> image and insert->image and actually get it there??
Because what you want is not to put the image inside the textbox, but get a floating image and drag it on top of the textbox.
Comment 12 Uwe Dippel 2015-09-06 20:44:49 UTC
Maybe I used the wrong terminology, sorry!
I don't mean textbox, of course!
I mean the Layout. There are 12 options here for layout, with title, with masthead and title in the center, with masthead and two colums, and so on.
Until LibreOffice 5.0 came on my desktop, I could click into those 'boxes' (NOT textboxes, of course!) and insert an image there. Promised. Without the image being used as background, but as image.

Try my first attachment, write some text, insert an image, and what you get is a tiled background image for that box. No, that doesn't make sense, sorry.

And sorry again for the 'textbox', I know that's something else. I was not precise.
Comment 13 Maxim Monastirsky 2015-09-06 22:41:03 UTC
(In reply to Uwe Dippel from comment #12)
> I mean the Layout. There are 12 options here for layout, with title, with
> masthead and title in the center, with masthead and two colums, and so on.
OK, thanks for clarifying. My observation now is:

- If the selected box is empty, the inserted image replaces the box (this is definitely the right behavior). 
- If the selected box has some text, it's treated as a textbox, and the image inserted as a background of it.

> Until LibreOffice 5.0 came on my desktop
Any idea when it behaved differently? I tried with 4.4 and it's the same there.

> Try my first attachment, write some text, insert an image, and what you get
> is a tiled background image for that box. No, that doesn't make sense, sorry.
I'm not sure. If there is a selected object, isn't the expectation that changes will be applied to this object as much as possible, rather than creating new floating objects?

Anyway, let's pass this to ux-advise.
Comment 14 Maxim Monastirsky 2015-09-06 22:45:52 UTC
Hi ux-advise,

Currently inserting an image in Impress while a drawing object (like a shape or a textbox) is selected, makes the image "inserted" into this object, so it's used as the fill.

The questions are:
1) Is it the desired behavior, or maybe the "Insert Image" action should always create a new floating image?
2) Is there any difference in this regard between a shape, a textbox, and a layout frame?

Thanks!
Comment 15 Yousuf Philips (jay) (retired) 2015-09-13 09:14:39 UTC
(In reply to Maxim Monastirsky from comment #14)
> Hi ux-advise,

Hey Maxim,

> Currently inserting an image in Impress while a drawing object (like a shape
> or a textbox) is selected, makes the image "inserted" into this object, so
> it's used as the fill.

Yes i had seen this behaviour before in writer and believe it is fine.

> The questions are:
> 1) Is it the desired behavior, or maybe the "Insert Image" action should
> always create a new floating image?

If text is selected and we insert more text, the selected text is replaced. If you select an image, and then insert a new image, the selected image gets replaced. So one option is that if an object is selected, inserting an image should replace it (this happens in impress when you select a textbox and insert an image).

> 2) Is there any difference in this regard between a shape, a textbox, and a
> layout frame?

Well its likely it has one behaviour when the shape/textbox/frame is selected and another behaviour when you are editing in the shape/textbox/frame.