Bug 308974 - Copy and pasted image from gimp not accepted by kmail2
Summary: Copy and pasted image from gimp not accepted by kmail2
Status: RESOLVED NOT A BUG
Alias: None
Product: kmail2
Classification: Applications
Component: composer (show other bugs)
Version: 4.9.2
Platform: openSUSE Linux
: NOR normal
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-10-25 10:02 UTC by Richard Bos
Modified: 2012-10-25 15:12 UTC (History)
2 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Richard Bos 2012-10-25 10:02:27 UTC
I used to add images (screenshots) from gimp into kmail.  I recently upgraded from kde-4.6.x to 4.9.x and now that (copy images into kmail2) is not possible anymore.


Reproducible: Always

Steps to Reproduce:
1. launch ksnapshot
2. make a screenshot and sent it to gimp
3. process the image / screenshot in Gimp (get for example only the interesting part of the screenshot, using the rectangle selection)
4. I now use <ctrl>-<shift>-<v> to copy the smaller rectangle into its own gimp canvas to add for example an red circle, to highlight the interesting area of image
5. copy the newly created image <ctrl>-c
6. Paste the image into the kmail2 composer
7. kmail2 asks: inline / or as an attachment

Steps 3 and 4 are not really needed, but it shows why I want to use Gimp.

Actual Results:  
When inline is selected:
  There is now only a very small image representing the image, but the real image isn't present :(

When attachment is selected:
  a name for the attachment is to be entered.  But no attachment is created :(


Expected Results:  
When inline is selected:
  The real image must show up

When attachment is selected:
  After entering the image name, the image should be added to the email as an attachment
Comment 1 Laurent Montel 2012-10-25 11:09:49 UTC
Git commit 5e1ae1ebe3129158a89fc694aa286755862586d4 by Montel Laurent.
Committed on 25/10/2012 at 13:09.
Pushed by mlaurent into branch 'KDE/4.9'.

Don't show popupmenu when image data is empty

M  +3    -0    kmail/kmcomposewin.cpp

http://commits.kde.org/kdepim/5e1ae1ebe3129158a89fc694aa286755862586d4
Comment 2 Richard Bos 2012-10-25 11:18:11 UTC
L,

when looking at the description of your commit, I don't believe it will solve my problem.  You're now preventing that the user gets the impression that something is pasted (which is a good thing), when the paste is empty.

Is it no longer possible to copy from Gimp and paste it into Kmail2?  What is the problem, doing the copy (from Gimp and paste into Kmail2)?  Does the version of Gimp matters btw?

R.
Comment 3 Laurent Montel 2012-10-25 11:38:49 UTC
I didn't told that it resolves your bug !
Where do you see it ?
Comment 4 Christoph Feck 2012-10-25 13:01:17 UTC
Richard, could you check if it works with KolourPaint (pasting from GIMP to KolourPaint, or pasting from KolourPaint to KMail2)?
Comment 5 Richard Bos 2012-10-25 14:48:26 UTC
Christoph,

Pasting from GIMP to KolourPaint, results in an error message:
  Kolourpaint cannot paste the contents of the clipboard as it has a unknown format

Pasting from KolourPaint to KMail2, works.
 That is at least something.  Unfortenately KolourPaint is less powerfull compared to Gimp (that is okay), but that makes not suited as alternative for Gimp :(

@Laurent, you did not state that your commit solves the problem I reported.  The thing is, because your commit is part of the but report it seems to imply that it is a solution for the reported problem.  

<sometime later>
I think I solved it......, it seems a setting in klipper.
- goto klipper's settings
- In the common tab (I've translate to English), in the common configuration part
- Uncheck the option: Neglect images

Once I unchecked "neglect images" I was again able to copy and paste from Gimp.

Sofar so good -> problem solved.  If it happens again or differently I'll (re)open the bug or open another.
Comment 6 Christoph Feck 2012-10-25 15:12:12 UTC
Thanks for the update.