Title: SVG output support · Issue #3 · rlguy/FantasyMapGenerator · GitHub
Open Graph Title: SVG output support · Issue #3 · rlguy/FantasyMapGenerator
X Title: SVG output support · Issue #3 · rlguy/FantasyMapGenerator
Description: It would be rather convenient to have the ability to output in SVG format, since SVG files are much more friendly for editing and scaling. I tried adding that to Python rendering script (using svgwrite library), but it became painfully s...
Open Graph Description: It would be rather convenient to have the ability to output in SVG format, since SVG files are much more friendly for editing and scaling. I tried adding that to Python rendering script (using svgw...
X Description: It would be rather convenient to have the ability to output in SVG format, since SVG files are much more friendly for editing and scaling. I tried adding that to Python rendering script (using svgw...
Opengraph URL: https://github.com/rlguy/FantasyMapGenerator/issues/3
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"SVG output support","articleBody":"It would be rather convenient to have the ability to output in SVG format, since SVG files are much more friendly for editing and scaling. I tried adding that to Python rendering script (using svgwrite library), but it became painfully slow once I added the slope lines to output.\r\nIn the end I hacked something together in C++, adding the MapGenerator::outputSvgData and a couple of small helper functions to MapGenerator class. \r\nSVG generation is pretty straight-forward, and it comes with an unexpected benefit of not having to calculate and pass label text extents for background covering, since SVG filtering can be employed to do that automagically. I used to a simple semi-opaque white to cover label backgrounds, but the specifics are easily editable.\r\nPatch and a couple of output SVG files (B\u0026W vs color) are attached. I verified those SVG files by opening and editing them in Inkscape, in case your SVG viewer of choice is giving you trouble.\r\nThanks for an awesome application and a great educational write-up on how it all works together!\r\n[svg_output.zip](https://github.com/rlguy/FantasyMapGenerator/files/824870/svg_output.zip)\r\n","author":{"url":"https://github.com/miilic","@type":"Person","name":"miilic"},"datePublished":"2017-03-07T15:31:20.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/3/FantasyMapGenerator/issues/3"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:2851edff-ecca-fb29-b642-7ca8e3b8e95b |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E016:DED9B:2703DAC:32504B8:698C1335 |
| html-safe-nonce | a4c0b1752ad2555de07985ed79475e2012b305aaffbfcc7a5866bc9ce1fd3057 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFMDE2OkRFRDlCOjI3MDNEQUM6MzI1MDRCODo2OThDMTMzNSIsInZpc2l0b3JfaWQiOiI2Nzk4MDU0Mjk2MzQ2NDMyMzEwIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 0d2487d9bec9c05c520e1d478d8a55bb0908e5d0afe6988084bcc72bb9227e86 |
| hovercard-subject-tag | issue:212467110 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/rlguy/FantasyMapGenerator/3/issue_layout |
| twitter:image | https://opengraph.githubassets.com/a1deef63680e21d08e6b9cacfd96b81f1e0257a5ef0d913bc299b572f7ca75e6/rlguy/FantasyMapGenerator/issues/3 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/a1deef63680e21d08e6b9cacfd96b81f1e0257a5ef0d913bc299b572f7ca75e6/rlguy/FantasyMapGenerator/issues/3 |
| og:image:alt | It would be rather convenient to have the ability to output in SVG format, since SVG files are much more friendly for editing and scaling. I tried adding that to Python rendering script (using svgw... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | miilic |
| hostname | github.com |
| expected-hostname | github.com |
| None | 640eeb7b6ff4d8d106235d228c0c286e82592d4d2403227b5b2b4fc5832297a4 |
| turbo-cache-control | no-preview |
| go-import | github.com/rlguy/FantasyMapGenerator git https://github.com/rlguy/FantasyMapGenerator.git |
| octolytics-dimension-user_id | 4285191 |
| octolytics-dimension-user_login | rlguy |
| octolytics-dimension-repository_id | 66412088 |
| octolytics-dimension-repository_nwo | rlguy/FantasyMapGenerator |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 66412088 |
| octolytics-dimension-repository_network_root_nwo | rlguy/FantasyMapGenerator |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 3d444f0a47beeeac94cddbb51c91ab408befe8d4 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width