https://bugs.kde.org/show_bug.cgi?id=464833

            Bug ID: 464833
           Summary: Pasting long data-uri based image creates too large
                    dialog
    Classification: Applications
           Product: krita
           Version: 5.1.5
          Platform: Microsoft Windows
                OS: Microsoft Windows
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: * Unknown
          Assignee: krita-bugs-n...@kde.org
          Reporter: fixato+key+bugtrac...@gmail.com
  Target Milestone: ---

Created attachment 155646
  --> https://bugs.kde.org/attachment.cgi?id=155646&action=edit
Screenshot of Krita download image dialog that's taller than the current
screen's resolution.

When trying to paste a data-uri based image copied from a browser, the "do you
want to download the image at data:image/jpeg:base64,/long base 64 string
here/" dialog that is opened, can end up being too tall for the screen,
obscuring the Yes / No buttons at the bottom.
This dialog also can't be resized, or scrolled, making it hard to agree or
disagree unless you know to press Y or N.
Putting the source URL in a scrollable text UI element would probably go a long
way towards improving the usability. 


STEPS TO REPRODUCE
1. Find an image in your browser that is embedded using a data-URI. The image
results of Google Image Search is the source I used when I encountered this
bug.
2. Right-click the image and select "Copy Image"
3. Open Krita and select "Paste into new image"
4. In the next dialog, select "Download from the remote source"
5. The too tall dialog is now displayed.

OBSERVED RESULT
A dialog is shown with the question "Do you want to download the image at
data:image/jpeg:base64,/long base 64 string here/", where the base64 string is
so long that it makes the dialog taller than my 3840x2160 display, bringing the
Yes / No buttons out of view and reach.

EXPECTED RESULT
The dialog should not exceed the current screen's dimensions, and the URL
should either be in a scrollable UI element, or cropped.


SOFTWARE/OS VERSIONS
Windows: Windows 11

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to