Bug 256492 - can't drag screenshot onto http://imgur.com in a browser to do the upload work
Summary: can't drag screenshot onto http://imgur.com in a browser to do the upload work
Status: RESOLVED FIXED
Alias: None
Product: ksnapshot
Classification: Applications
Component: general (show other bugs)
Version: 0.8.2
Platform: Gentoo Packages Linux
: NOR normal
Target Milestone: ---
Assignee: Richard Moore
URL:
Keywords: reproducible
Depends on:
Blocks:
 
Reported: 2010-11-10 06:32 UTC by Elias Probst
Modified: 2013-07-19 19:54 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Elias Probst 2010-11-10 06:32:53 UTC
Version:           unspecified (using KDE 4.5.3) 
OS:                Linux

KSnapshot uses a wrong mimetype for the screenshot.

Reproducible: Always

Steps to Reproduce:
Scenario #1)
- Make a screenshot using ksnapshot
- Press 'Copy to clipboard'
- Open a filemanager (e.g. Dolphin)
- Rightclick in a folder and select 'Paste clipboard contents'

Scenario #2)
- Make a screenshot using ksnapshot
- Drag the screenshot shown in the ksnapshot window to a filemanager to save the screenshot through drag'n'drop.

Actual Results:  
Scenario #1)
- When pasting the image, the preselected mimetype is shown as 'application/x-qt-image', although the image which is created then, is actually a PNG image.

Scenario #2)
- The cursor is always shown as 'blocked' by the filemanager, due to an probably unknown mimetype.
Comment 1 Hans-Rudi Denzler 2010-11-10 15:47:37 UTC
application/x-qt-image is not a registered file type in system settings.
The code seems to follow the logic "QInternalMimeData::hasFormat".
The first "foundFormat" of "imageFormats" when scrolling mouse wheel is PNG-Image (image/png).

In scenario #2 the cursor is 'not blocked' with KolourPaint or GIMP.
Comment 2 Elias Probst 2011-12-16 17:44:16 UTC
The initially reported scenarios work now in KDE 4.7.90 (4.8.0 beta2), using Qt 4.7.4.

Another issue which remains:
→ Open http://imgur.com in a browser
→ Drag the image from ksnapshot to the browser

When dragging a regular image file to the browser, it can be uploaded directly.
When dragging the image from ksnapshot there, nothing happens
Comment 3 Jekyll Wu 2013-04-01 06:01:44 UTC
Update report summary to reflect the current status.
Comment 4 Sebastian Kügler 2013-07-19 19:54:59 UTC
Git commit 3bb8fe97096badedf45863ab81f5868ca01cc2de by Sebastian Kügler.
Committed on 19/07/2013 at 19:46.
Pushed by sebas into branch 'master'.

Attach URL to dragged image to mimedata

This makes dropping ksnapshots images into clients work that don't pick up the
image data, but only look for a URL in the dragged mimedata.

REVIEW:111564
Related: bug 158677, bug 256801

M  +3    -0    ksnapshot.cpp

http://commits.kde.org/ksnapshot/3bb8fe97096badedf45863ab81f5868ca01cc2de