Bug 36029 - copying images out of inline html documents would be nice
Summary: copying images out of inline html documents would be nice
Status: RESOLVED FIXED
Alias: None
Product: konqueror
Classification: Applications
Component: khtml (show other bugs)
Version: unspecified
Platform: Compiled Sources Other
: NOR wishlist
Target Milestone: ---
Assignee: Konqueror Developers
URL:
Keywords:
: 89130 (view as bug list)
Depends on:
Blocks:
 
Reported: 2001-12-10 23:33 UTC by jeff
Modified: 2005-02-14 12:53 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 jeff 2001-12-10 23:32:59 UTC
(*** This bug was imported into bugs.kde.org ***)

Package:           khtml
Version:           KDE 2.9.0 
Severity:          wishlist
Installed from:    Compiled From Sources
Compiler:          Not Specified
OS:                Not Specified
OS/Compiler notes: Not Specified

Inside of windows based browsers you have the ability to copy an image out of web page and paste it into another program.  This functionality is missing from khtml and I always find myself needing it.  The closest thing is to copy the image location and inside of kword insert it but this isn't always useful if you are using image programs such as the gimp.



(Submitted via bugs.kde.org)
Comment 1 Maksim Orlovich 2004-11-12 20:38:38 UTC
*** Bug 89130 has been marked as a duplicate of this bug. ***
Comment 2 John Tapsell 2004-12-21 20:17:38 UTC
CVS commit by johnflux: 

HAPPY CHRISTMAS ALL!  My present to you all - My biggest patch yet.

When you select text and copy it to clibboard, it now retains the formatting.
It's fairly complex, so there will possibly be bugs despite my testing.
I'd really like any feedback.

It does not deal with css, so the formatting may be a little off.  I do not think I will 'fix' this as I don't see it being that broken a behaviour.  (feel free to persuade me otherwise)

It is guaranteed to produced valid xml.

When copying text+images, the images are pasted as urls (since I'm using mimetype text/html).  I'm looking at perhaps embedding the images in the clipboard using a webarchive.

You can right click an image and copying the image.  This now actually copies it to the clipboard as well.  This shows up bugs in openoffice (not dealing with transparency correctly for some reason) and kword (it prefers to paste as text/plain over image/* )
Also note that a copied image is the image you see.  Not the image downloaded.

Please note that no functionality has been removed.  Copying and pasting text to a program that does not support rich text, pastes it without formatting, exactly as it did before.  For apps that do support rich text, I strongly recommend all such apps implement 'paste special' of some sort so the user can chose to paste without formatting.  I may work on this at some point.

You can test this by pasting into openoffice.  Support for pasting into kword will come soon I hope (I need to get kword to run it's import filters on the clipboard data)



FEATURE:89057
FEATURE:36029
FEATURECC:71476


  M +1 -1      Makefile.am   1.163
  M +68 -15    khtml_ext.cpp   1.106
  M +1 -0      khtml_ext.h   1.32
  M +5 -0      khtml_part.cpp   1.1064
  M +2 -0      khtml_part.h   1.271
  M +1 -0      khtml_popupmenu.rc   1.35
  M +4 -2      dom/dom2_range.cpp   1.37
  M +2 -1      html/html_imageimpl.h   1.69
  M +185 -3    xml/dom2_rangeimpl.cpp   1.35
  M +16 -1     xml/dom2_rangeimpl.h   1.24
  M +43 -4     xml/dom_elementimpl.cpp   1.205
  M +16 -2     xml/dom_elementimpl.h   1.121
  M +12 -1     xml/dom_nodeimpl.h   1.166
  M +14 -0     xml/dom_textimpl.cpp   1.105
  M +6 -1      xml/dom_textimpl.h   1.62



Comment 3 Mathieu Jobin 2004-12-21 22:37:51 UTC
can you also copy images ? according to your description, it seems great, but unrelated

Comment 4 Vedran Ljubovic 2005-02-14 12:53:43 UTC
I have tried to copy a page from Konqueror to OpenOffice and the image was copied! Perhaps what he wanted to say is that image is copied by reference (e.g. link to image, you wont see it anymore when you're offline).

I think this is satisfactory, today everyone is online ;)