-
-
Notifications
You must be signed in to change notification settings - Fork 732
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add image export capability #132
Comments
From ondrej.zara on May 03, 2011 22:47:21 This is actually not very realizable, from the technical point of view. Please reead the whole discussion for Issue 70 : https://code.google.com/p/wwwsqldesigner/issues/detail?id=70 |
From deansofer on May 31, 2011 17:34:49 I say you close this one. There are lots of browser plugins and extensions that do this for you (that I personally use). Just go to your browser plugin list and search for screenshot. The only thing that's a problem for these is the minimap and toolbar, which I hide. |
From ondrej.zara on May 31, 2011 22:59:59 Agreed. I am leaving this open only so its easier for people to find the relevant discussion as well as the link to http://www.phantomjs.org/ . |
This is a very basic implementation of SVG export. It looks into DOM elements to figure out the positions and dimensions, and then re-creates the tables as plain SVG <rect> and <text>. Works fine on both Firefox and Chrome. Known issues: * The positions are incorrect if the browser has some zoom applied. In fact, the display is already incorrect in the browser itself (the SVG paths are not correctly aligned with the elements). * Rounded corners are not supported. Implementing that (properly) would require SVG clipping or some extra tricks. Not worth the extra trouble for now. * The borders are 2-pixel wide because otherwise they would not align to the pixel grid (1-pixel border would cover two half pixels). * There are no translations for other languages. Related issues: * ondras#131 * ondras#132
From [email protected] on May 03, 2011 22:26:33
It would be really cool if you could add the possibility of exporting a database schema to an image file. Say a jpg file for example.
Original issue: http://code.google.com/p/wwwsqldesigner/issues/detail?id=125
The text was updated successfully, but these errors were encountered: