Bug 12811 - Standalone SVG documents should have contextual menu as normal Images
Summary: Standalone SVG documents should have contextual menu as normal Images
Status: REOPENED
Alias: None
Product: WebKit
Classification: Unclassified
Component: SVG (show other bugs)
Version: 419.x
Hardware: Mac OS X 10.4
: P2 Enhancement
Assignee: Nobody
URL:
Keywords: InRadar
: 272588 (view as bug list)
Depends on:
Blocks:
 
Reported: 2007-02-19 03:09 PST by Christopher Ramsey
Modified: 2024-04-12 09:00 PDT (History)
5 users (show)

See Also:


Attachments
Contextual menu shown for normal embedded images (55.47 KB, image/png)
2007-12-27 02:00 PST, Eric Seidel (no email)
no flags Details
Contextual menu shown for standalone SVG documents (19.47 KB, image/png)
2007-12-27 02:01 PST, Eric Seidel (no email)
no flags Details
Contextual menu shown for standalone png images (32.49 KB, image/png)
2007-12-27 02:01 PST, Eric Seidel (no email)
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Christopher Ramsey 2007-02-19 03:09:46 PST
The printing of SVG images on WebKit is better than all other implementations I have used - this makes it a very useful program for using with SVG graphics.  In many cases, however, it is very useful to be able to copy an SVG graphic for pasting into other documents - or alternatively/in addition ot save the SVG graphic.  It would be very useful if this could be included - copy as pdf or save as pdf/svg image would be useful since this gives full vector graphics.  Copy as rastererised image is also sometimes useful - though a lower priority.
Comment 1 Eric Seidel (no email) 2007-05-10 04:44:29 PDT
This requires a feature called "SVGImage" which is disabled in the current development branch.  After Safari (Leopard) ships, I'm sure SVGImage will be turned back on and this feature implemented.

I'm not sure we have a bug about turning SVGImage back on, but this bug could be duped to that one.
Comment 2 Eric Seidel (no email) 2007-10-06 20:19:25 PDT
SVGImage has been turned back on on feature-branch.  "copy" works as you would expect.
http://nightly.webkit.org/builds/overview/feature-branch
Comment 3 Christopher Ramsey 2007-10-08 03:36:24 PDT
When this was raised I was not specifically raising this for display within IMG tags.  A standalone SVG page can still not be copied (except the text) or saved in a different form.  On a Mac print to pdf works well but this has the usual headers and footers and is full page size.  Being able to save the SVG image as pdf at the defined size of the image area would enable the image to be incorporated into other documents - as would the same ability with a rasterised image(though with lower quality).
Comment 4 Eric Seidel (no email) 2007-12-15 01:35:41 PST
I think he's asking for stand-alone SVGs to have similar controls as those found on ImageDocument.
Comment 5 Eric Seidel (no email) 2007-12-27 01:59:31 PST
Could you give an example of existing functionality you'd like us to duplicate for SVGs?

As I mentioned above, SVGs now work correctly in <img> tags, including the copy contextual menu you asked for.

Are you now asking for us to add similar contextual menus to SVGs when rendered stand-alone in a window by themselves?  If so I'd like to change the title of the bug.
Comment 6 Eric Seidel (no email) 2007-12-27 02:00:12 PST
Created attachment 18126 [details]
Contextual menu shown for normal embedded images
Comment 7 Eric Seidel (no email) 2007-12-27 02:01:05 PST
Created attachment 18127 [details]
Contextual menu shown for standalone SVG documents
Comment 8 Eric Seidel (no email) 2007-12-27 02:01:58 PST
Created attachment 18128 [details]
Contextual menu shown for standalone png images
Comment 9 Eric Seidel (no email) 2007-12-27 02:13:09 PST
One possible way to solve this would be to teach:
 Editor::canCopy()
about SVG documents.
Comment 10 Nicholas Shanks 2008-03-25 05:33:31 PDT
Christopher: you can turn off the headers and footers in the print dialog.
Comment 11 Alexey Proskuryakov 2024-04-12 08:59:50 PDT
*** Bug 272588 has been marked as a duplicate of this bug. ***
Comment 12 Radar WebKit Bug Importer 2024-04-12 09:00:34 PDT
<rdar://problem/126353446>