Bug 435657 - (5.0.0 prealpha 4cca3e9600) drag-and-dropping image from web browser doesn't work anymore
Summary: (5.0.0 prealpha 4cca3e9600) drag-and-dropping image from web browser doesn't ...
Status: RESOLVED DUPLICATE of bug 438426
Alias: None
Product: krita
Classification: Applications
Component: General (show other bugs)
Version: nightly build (please specify the git hash!)
Platform: Compiled Sources Microsoft Windows
: NOR normal
Target Milestone: ---
Assignee: Tiar
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-04-12 14:24 UTC by WOAS
Modified: 2022-05-04 22:11 UTC (History)
4 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
reference import error (5.73 KB, image/png)
2021-04-12 14:24 UTC, WOAS
Details

Note You need to log in before you can comment on or make changes to this bug.
Description WOAS 2021-04-12 14:24:03 UTC
Created attachment 137530 [details]
reference import error

SUMMARY
Latest stable release (4.4.3) didn't have this problem. I could just drag-and-drop images from a website using any browser into krita and use them as reference or paste as new layer AND it would preserve transparency. Prealpha gives errors now (see attachment). (Different errors actually, depends if I'm trying to import as new layer or reference image)

Current workaround - Copying and pasting images from internet - doesn't preserve transparency and just fills transparent pixels with pure black (this doesn't happen when I paste transparent images into other applications btw)
Comment 1 vanyossi 2021-04-16 02:01:59 UTC
I just tested (db8a16ff4580) and it places png with transparency correctly. this is on macOS and D&D from Firefox

Is this still happening? nightly build is actively worked on and new additions can break things until we notice and fix them.
Comment 2 WOAS 2021-04-16 07:18:08 UTC
(In reply to vanyossi from comment #1)
> I just tested (db8a16ff4580) and it places png with transparency correctly.
> this is on macOS and D&D from Firefox
> 
> Is this still happening? nightly build is actively worked on and new
> additions can break things until we notice and fix them.

Grabbed latest build 4867ddffea and it's acting weird.
Using MS Edge (chromium) allows me to drag and drop but still gives an error.
Using Tor Browser (Firefox based) allows me to drag and drop BUT it ONLY pastes an image as new paint layer (doesn't give a prompt) and it does NOT preserve alpha.
Comment 3 Halla Rempt 2021-04-16 08:25:05 UTC
Not preserving alpha is a windows clipboard problem. Qt has been flip-flopping between two different methods of putting image data on the clipboard, and currently it's using the method that doesn't allow transparency. We cannot do anything about that.
Comment 4 Bug Janitor Service 2021-04-17 04:33:22 UTC
Thanks for your comment!

Automatically switching the status of this bug to REPORTED so that the KDE team
knows that the bug is ready to get confirmed.

In the future you may also do this yourself when providing needed information.
Comment 5 Alvin Wong 2022-02-13 10:50:36 UTC
@Amy Does this still apply on latest master after https://invent.kde.org/graphics/krita/-/merge_requests/1296 has been merged?
Comment 6 amyspark 2022-05-04 22:11:20 UTC

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