Skip to content
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

Export SVG files in the headless mode #1778

Closed
jdzucker opened this issue May 19, 2016 · 3 comments
Closed

Export SVG files in the headless mode #1778

jdzucker opened this issue May 19, 2016 · 3 comments
Assignees
Labels
🤗 Enhancement This is a request for enhancement Priority High

Comments

@jdzucker
Copy link
Contributor

To support advanced function in the gamaR Package. This would enable us to provide a super smooth video.

@jdzucker jdzucker added 🤗 Enhancement This is a request for enhancement Priority High labels May 19, 2016
@AlexisDrogoul
Copy link
Member

SVG export requires a lot of other libraries...

@AlexisDrogoul
Copy link
Member

Actually, I made a quick tour of what is available, and I think the solution can be:

  • to create a new kind of display which internally uses http://www.jfree.org/jfreesvg/ (a lightweight library)
  • to create the corresponding IGraphics object using the same library
  • to add an option to the headless experiments so that they use this display instead of the standard image Java2D one and retrieve SVG elements instead of BufferedImages (after that the library has everything necessary to save SVG files with the correct headers, etc. )

Not a lot of work, I guess, and most of it could be put in a separate plugin.

@AlexisDrogoul
Copy link
Member

Moved to gama-platform/gama.experimental#10

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🤗 Enhancement This is a request for enhancement Priority High
Projects
None yet
Development

No branches or pull requests

3 participants