Created attachment 192553 [details] screenshot 1 When picture is pasted into a write document in place of existing picture its aspect ratio changes to fit that of the original picture. While such behaviour may be sometimes desirable, in general distorting a picture is not a good idea. I'd like to be able to retain the aspect ratio of the pasted picture while keeping other formatting options of the selected picture at least as an option, probably as the default behaviour. Consider the following scenario: 1. create two objects in LibreOffice Draw - oblong rectangle and a circle (screenshot 1) 2. copy the rectangle to the clipboard and paste into Write 3. copy the circle to the clipboard 4. click on the rectangle in Write to select it (screenshot 2) 5. paste the circle - an ellipse is pasted instead of a circle (screenshot 3)
Created attachment 192554 [details] screenshot 2
Created attachment 192555 [details] screenshot 3
I, too, dislike this behavior. The current behavior will be wrong 99% of the time. The problem seems to be that when you paste the new image, the width and height properties are not updated. So to fix the issue you're forced to right-click the image, then go to Properties and click Original Size. TBH this feels like a bug to me.
FTR this issue arises when pasting any images over existing images in Writer (not only images from LO Draw as reported by the OP). Steps to reproduce 1) Create a blank Writer document 2) Copy and paste any image (from the browser or from the screenshot tool, or anywhere really) 3) Paste the image on the new Writer document 4) Now copy any other image with a different size 5) Select the previously pasted image in Writer 6) Press Ctrl+V to paste the new image and replace the old image 7) The size of the previous image is maintained I'm changing the title for clarity.
This problem does not exist in Impress. Pasting an image on top of another image to replace it will update the image size as expected.
Also in Versie: 4.4.7.2 Build ID: f3153a8b245191196a4b6b9abd1d0da16eead600 Locale: nl_NL and in LibreOffice 3.5.7.2 Build ID: 3215f89-f603614-ab984f2-7348103-1225a5b The current behaviour is more or less a shortcut for right click context menu -> replace function. To CTRL+V acts as 'replace' image (so not changing dimensions). Requested here: overwrite the current one for the new one. I have tendency to prefer overwrite above, replace as normal expectation. Argument for doing nothing: CTRL+V being used to replace images.. breaking current workflows.
(In reply to Telesto from comment #6) > Requested here: overwrite the current one for the new one. I have tendency > to prefer overwrite above, replace as normal expectation. To make myself clear, I am not requesting to change dimensions to that of the new image. I propose to scale the new image to fit the same space but retain its aspect ratio while doing so. Of course it may create some unallocated space which will require one of the dimensions to be shrunk, but no more than necessary.
It's not a bug but a feature, well not entirely. If you paste the image onto a shape it will be used to fill the object- quite a handy feature. Apparently it happens in case of images as well, yet the (totally pointless) area fill attribute does not show the applied "filling". IMO we have to block this, hide the area fill for images, and make the paste-to-fill feature working in Draw/Impress (again). We likely have tickets on all of these issues.
(In reply to Rafael Lima from comment #4) > FTR this issue arises when pasting any images over existing images in Writer > (not only images from LO Draw as reported by the OP). > > Steps to reproduce > 1) Create a blank Writer document > 2) Copy and paste any image (from the browser or from the screenshot tool, > or anywhere really) > 3) Paste the image on the new Writer document > 4) Now copy any other image with a different size > 5) Select the previously pasted image in Writer > 6) Press Ctrl+V to paste the new image and replace the old image > 7) The size of the previous image is maintained > > I'm changing the title for clarity. I don't reproduce this even with 24.2. (In reply to Heiko Tietze from comment #8) > It's not a bug but a feature, well not entirely. If you paste the image onto > a shape it will be used to fill the object- quite a handy feature. > Apparently it happens in case of images as well, yet the (totally pointless) > area fill attribute does not show the applied "filling". IMO we have to > block this, hide the area fill for images, and make the paste-to-fill > feature working in Draw/Impress (again). We likely have tickets on all of > these issues. I don't reproduce any filling when pasting image to image. In the navigator I see a copy has been created while the replaced image disappears. Please check it again.
(In reply to Buovjaga from comment #9) > (In reply to Heiko Tietze from comment #8) > > If you paste the image onto a shape it will be used to fill the object > I don't reproduce any filling when pasting image to image. Try with a different source or per paste special > bitmap image.
(In reply to Heiko Tietze from comment #10) > (In reply to Buovjaga from comment #9) > > (In reply to Heiko Tietze from comment #8) > > > If you paste the image onto a shape it will be used to fill the object > > I don't reproduce any filling when pasting image to image. > Try with a different source or per paste special > bitmap image. Ok, with special paste I repro the change in aspect ratio. However, I don't see any connection to *area fill*. If I go to image properties, Position and Size and click Original Size, I get the expected size.
(In reply to Buovjaga from comment #11) > I don't see any connection to *area fill*. Leaning out myself but if you paste a small image it will be tiled by default. However, if the target has an area fill with the option stretched applied the pasted image will be stretched too. But I agree, NAB at this point. And the screenshots are not helpful either.
(In reply to Heiko Tietze from comment #12) > (In reply to Buovjaga from comment #11) > > I don't see any connection to *area fill*. > Leaning out myself but if you paste a small image it will be tiled by > default. However, if the target has an area fill with the option stretched > applied the pasted image will be stretched too. But I agree, NAB at this > point. And the screenshots are not helpful either. I was testing by pasting a small image. Now I tried again and applying an area fill + tiled beforehand makes no difference. Are you really talking about image to image pasting or image to shape? I see what you describe with shape targets, but not with image targets.
(In reply to Buovjaga from comment #13) > Are you really talking about image to image pasting or image to shape? Tested with image into shape, but I guess it makes no difference.
(In reply to Heiko Tietze from comment #14) > (In reply to Buovjaga from comment #13) > > Are you really talking about image to image pasting or image to shape? > Tested with image into shape, but I guess it makes no difference. No, you guess wrong.