Bug 133729 - PNGs with transparency get pasted with black background
Summary: PNGs with transparency get pasted with black background
Status: RESOLVED DUPLICATE of bug 98275
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Impress (show other bugs)
Version:
(earliest affected)
6.4.3.1 rc
Hardware: x86-64 (AMD64) Windows (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-06-06 11:17 UTC by Ninpodeshi
Modified: 2021-03-17 07:39 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments
Demonstration of the requested upgrade (153.09 KB, image/png)
2020-10-26 06:57 UTC, Ninpodeshi
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Ninpodeshi 2020-06-06 11:17:34 UTC
Is there a way to add a copy/paste ability so that graphics can be copied directly from the internet and pasted into an Impress presentation?  I've seen this request a couple times in the LO Forums.

I teach ESL in SE Asia.  Most schools will provide me with Google for Education, which comes with Slides.  With Slides, I can copy/paste directly from an image search into a presentation. With Impress, vectors insert with a white square background like old clip-art. In a recent presentation, I used 50 images in the first 20 slides, so having to download, rename, save, then open up a search to find the image again before inserting is a non-starter.  

If it is necessary to save the image locally, could we add a feature so that we can click a button in Impress that allows us to download the image by image address and save it while inserting at the same time?  That would take a little more time, but would be a worthwhile trade off to use Impress.

Thank you to all of you awesome programmers that make this a great program.
Comment 1 Buovjaga 2020-10-16 14:12:39 UTC
Works fine for me. I navigated to https://www.libreoffice.org/themes/libreofficenew/img/header1.jpg right-clicked, Copy image, pasted to Impress.

What is the problem specifically for you? Please give an example online image.

Set to NEEDINFO.
Change back to UNCONFIRMED after you have provided the information.

Arch Linux 64-bit
Version: 7.1.0.0.alpha0+
Build ID: 9b34dc20b6946698ae6ce2d5d859885bfb444633
CPU threads: 8; OS: Linux 5.8; UI render: default; VCL: kf5
Locale: fi-FI (fi_FI.UTF-8); UI: en-US
Calc: threaded
Built on 16 October 2020
Comment 2 Ninpodeshi 2020-10-26 06:57:55 UTC
Created attachment 166718 [details]
Demonstration of the requested upgrade

Thank you for responding Buovjaga.

The problem occurs with vector images. jpegs come in a completely filled rectangular frame while vectors are transparent around the image. When I copy/paste a vector directly into LO Impress, instead of showing just the image, it also brings in a black, rectangular background.

I uploaded an image to demonstrate. The vectorized image was copy/pasted into G Slides, downloaded, & opened in Impress. The one with the black background was copy/pasted directly into Impress.

Thank you again for responding & thank you to all you guys that do great work with the LO team.
Comment 3 Buovjaga 2020-10-26 07:46:44 UTC
(In reply to Ninpodeshi from comment #2)
> Created attachment 166718 [details]
> Demonstration of the requested upgrade
> 
> Thank you for responding Buovjaga.
> 
> The problem occurs with vector images. jpegs come in a completely filled
> rectangular frame while vectors are transparent around the image. When I
> copy/paste a vector directly into LO Impress, instead of showing just the
> image, it also brings in a black, rectangular background.
> 
> I uploaded an image to demonstrate. The vectorized image was copy/pasted
> into G Slides, downloaded, & opened in Impress. The one with the black
> background was copy/pasted directly into Impress.

You image is not enough to demonstrate as it is a PNG and not a vector image. Please attach such a vector image.
Comment 4 Ninpodeshi 2020-10-26 08:50:37 UTC
Yes, this is a .png because it is a screen clip that I took of a LO Impress file I'm working on.

In the .png, there are 2 vectors pasted onto an Impress slide.  The one that shows just the princess was pasted into G Slides and downloaded into LO.  The princess with the black background was copy/pasted into Impress directly.

My apologies for the confusion.
Comment 5 Buovjaga 2020-10-26 08:51:25 UTC
Yeah, please attach the princess vector image
Comment 6 Ninpodeshi 2020-10-26 10:23:27 UTC
The link below is where I got the image. I don't see a place where I can copy/paste the image into this message though.

https://publicdomainvectors.org/tn_img/ShakespearePrincessColour.png 

Thank you again for your help.
Comment 7 Buovjaga 2020-10-26 10:31:10 UTC
(In reply to Ninpodeshi from comment #6)
> The link below is where I got the image. I don't see a place where I can
> copy/paste the image into this message though.
> 
> https://publicdomainvectors.org/tn_img/ShakespearePrincessColour.png 
> 
> Thank you again for your help.

"Add an attachment" directly above the comments field.

But this is still not a vector image. It is a png.
Comment 8 Buovjaga 2021-03-17 07:39:02 UTC
I discussed this with the reporter on IRC and it turns out this was not about vector graphics after all, but PNGs with transparent backgrounds.

The steps were
1. Visit https://publicdomainvectors.org/en/free-clipart/Princess-in-colorful-dress/55612.html
2. Right-click the princess image, Copy image
3. Paste into Impress on Windows

I found an older report, so closing as duplicate

*** This bug has been marked as a duplicate of bug 98275 ***