rebootcode / svg-edit

Automatically exported from code.google.com/p/svg-edit
MIT License
0 stars 0 forks source link

Export PNG hangs when SVG references external bitmaps #749

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Use image tool to add image referencing external PNG via absolute URL
2. Use export as PNG menu option

What is the expected output? 

After a short pause, "Loading image, please wait..." should be replaced with 
the image rendered to PNG

What do you see instead?

"Loading image, please wait..." remains visible indefinitely.

In what browser did you experience this problem? (ALL, Firefox, Opera, etc)

Firefox (3.6.13 on Windows 7 amd64 and OS X 10.6),
Chrome (8.0.552.224 on Windows 7 amd64 and OS X 10.6)

In what version of SVG-edit does the problem occur? (Latest trunk, 2.5.1,
etc)

http://svg-edit.googlecode.com/svn-history/r1771/trunk/editor/svg-editor.html

Please provide any additional information below.

Original issue reported on code.google.com by jimpurbr...@gmail.com on 7 Jan 2011 at 5:38

GoogleCodeExporter commented 9 years ago
Yeah, due to the client-side processing (through the Canvas element's 
toDataURL), external URLs aren't going to work on export. This is a browser 
security restriction we can't work around for the editor as hosted here. 

We (or the Canvg project) should however look into making this possible with a 
server-side script.

Original comment by adeve...@gmail.com on 7 Jan 2011 at 6:44