https://bugs.kde.org/show_bug.cgi?id=426734
Bug ID: 426734 Summary: For certain image files I cannot paste into krita/create from clipboard Product: krita Version: 4.3.0 Platform: Compiled Sources OS: Linux Status: REPORTED Severity: normal Priority: NOR Component: General Assignee: krita-bugs-n...@kde.org Reporter: aiena.makehu...@gmail.com Target Milestone: --- SUMMARY I have an unusual problem. For certain jpg's etc from firefox if I copy to clipboard. Ctrl+N takes very long time to load and then the preview is blank I see one "Text Label" in place of the preview image. The image dimensions seem to show up correctly but if I press create. Only a white canvas is created. If I copy the image from firefox and try to paste into a already created canvas also the image does not get pasted. I have verified that the image is stored in the clipboard by trying to paste the same image into GIMP and inkscape the only other 2 programs I had at hand (I am aware they are not QT based). STEPS TO REPRODUCE 1. Open Firefox web browser 2. Open this URL https://i.redd.it/vmmixjanvwn51.jpg 3. Right click and copy the image to clipboard 4. Open/ maximise Krita 5. Press Ctrl+N OBSERVED RESULT There is a long delay to open the new file creation dialog. The Image copied to clipboard does not show up in the preview though ctrl+N does activate. The dimenasions of the image copied to clipboard (sometimes) seem to be filled in correctly in Krita but pressing create puts a different background(plain white). EXPECTED RESULT The image should be made available to copy from cipboard into Krita. SOFTWARE/OS VERSIONS Linux/KDE Plasma: kubuntu 20.04, KDE plasma , Qt version 5.12.8, (available in About System) KDE Plasma Version: 5.18.5 KDE Frameworks Version: 5.68.0 Qt Version: 5.12.8 ADDITIONAL INFORMATION This does not happen with all images only some images. If I use the file command in linux this image does not appear any different from other jpegs but others work. This may be another bug. I noticed that if you use another image and press ctrl+N (one with which it shows a preview and load dims correctly) and then you copy this image which fails to clipboard from FF. Pressing create in krita after that will load this image but with canvas size limited to dimensions of the other image. SO it appears that a part of krita can read this file correctly. If I save the file locally and open it in gwenview and then use gwenview's copy and press ctrl+n with Krita the dialog takes time to load but the preview resolution etc are detected correctly and krita display's the file well. I have tested multiple ways and find this behaviour strange. Other images with which you can test the above behaviour https://www.mediafire.com/convkey/31aa/mrwqrylr5zm96dczg.jpg https://www.mediafire.com/convkey/d5bb/qh1ht3sd8vp4xr3zg.jpg I have a hypothesis that this may have something to do with the size of the image being copied. If its is larger 1000x1000px the issue is exhibited. Additionally this image wont paste even into a currently open .kra. === On further testing === I noticed in Firefox an image initially loads scaled to fit the Tab. If I magnify the image to 100% and then use copy to clipboard. Then use ctrl+N in Krita the preview does not show correctly ("Text Label" shown in place of the image) but dimensions are shown correctly and pressing create will open the dialog ("as web", "as on monitor) and the image does finally load correctly in Krita. (Note I tested and this behaviour is reproducible with the 2 mediafire links posted above as well). This bug is very confusing for me to describe. I hope this helps. -- You are receiving this mail because: You are watching all bug changes.