Bug 396474 - No information about pasting image failure, plus issues when pasting images from Chrome
Summary: No information about pasting image failure, plus issues when pasting images f...
Status: RESOLVED WORKSFORME
Alias: None
Product: krita
Classification: Applications
Component: General (other bugs)
Version First Reported In: 4.1.0
Platform: Ubuntu Linux
: NOR normal
Target Milestone: ---
Assignee: Krita Bugs
URL:
Keywords: investigated, triaged
Depends on:
Blocks:
 
Reported: 2018-07-13 14:36 UTC by konrados
Modified: 2018-09-15 23:09 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description konrados 2018-07-13 14:36:25 UTC
I tried to recognize the pattern when the issue occurs, but still not sure, here is the one which always fails in my case:

1. In Krita create a new image (in my case this is rgba 1024x1024 8 bits per channel, where content is a layer with white background).

2. Open this image in Chrome:
 https://www.peppercarrot.com/0_sources/ep05_Special-holiday-episode/low-res/en_Pepper-and-Carrot_by-David-Revoy_E05P02.jpg

3. Right click the image, choose 'copy image'

4. Go back to Krita, hit Ctrl+v, or select Edit -> paste

In my case it doesn't work, and I don't see any error message. Funny things:

It works fine when copied from Firefox (always).

It works fine in gimp (always)

-

BTW, when I try to paste something Krita apparently completely doesn't understand (as far as I understand, I mean something like text when **not** being in text edit mode) - then I don't see an error saying "unrecognized format" or something like that and I think there really should be an alert like that. 

Because otherwise user is left wondering "where did it go?", "maybe it pasted in this 0-opacity layer or something?".

BTW II - thanks the software, it seems very cool (I just started playing with it today :)) 

Krita
  Version: 4.1.0

OS Information
  Build ABI: x86_64-little_endian-lp64
  Build CPU: x86_64
  CPU: x86_64
  Kernel Type: linux
  Kernel Version: 4.4.0-116-generic
  Pretty Productname: Ubuntu 16.04.4 LTS
  Product Type: ubuntu
  Product Version: 16.04

OpenGL Info
  **OpenGL not initialized**
Comment 1 Scott Petrovic 2018-07-19 13:24:30 UTC
I wonder if this is specific to Ubuntu 16.04

I just tested the right click > 'copy image' from chrome on Windows 10 and it was ok. 

I know dragging an image directly from Chrome to Krita doesn't work as Chrome copies the URL for the image and not the image data (Firefox drags the image data so you can just drag an image from the browser right in Krita to copy/paste it).
Comment 2 konrados 2018-07-22 21:58:42 UTC
@Scott

> I wonder if this is specific to Ubuntu 16.04

Well, could be. I even installed "CopyQ" program, which enables previewing the clipboard content, so after copying something I can see what it is (image / text).

But... my investigation didn't bring any clear results :( I mean I admit I gave up, because it seems there are problems with the CopyQ program itself. Sometimes after copying an image I can see... two images listed there, each with different quality o.O 


I thought that maybe it's simpler for Krita's  devs to see what is exactly going on, step by step (what does the program receives from OS), than for me to make wild guesses based on another app which could be buggy (CopyQ):)
Comment 3 Eoin O'Neill 2018-09-15 22:26:51 UTC
I could not reproduce this error on my system. 

Application Version: Master
OS: Ubuntu 18.04 bionic
Kernel: x86_64 LINUX 
Browser: Chrome Version 69.0.3497.92 (Official Build) (64-bit)

Perhaps try apt-get update and apt-get upgrade to make sure all dependencies are met. You could also try running krita in a flatpak to see if the behavior is more normalized in a contained environment.