Bug 435657

Summary: (5.0.0 prealpha 4cca3e9600) drag-and-dropping image from web browser doesn't work anymore
Product: [Applications] krita Reporter: WOAS <korotkih.00>
Component: GeneralAssignee: Tiar <tamtamy.tymona>
Status: RESOLVED DUPLICATE    
Severity: normal CC: alvin, amy, ghevan, halla
Priority: NOR    
Version: nightly build (please specify the git hash!)   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Microsoft Windows   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: reference import error

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 ***