Title: Pixie Trying to Parse SVG Viewbox as Int · Issue #29 · treeform/pixie-python · GitHub
Open Graph Title: Pixie Trying to Parse SVG Viewbox as Int · Issue #29 · treeform/pixie-python
X Title: Pixie Trying to Parse SVG Viewbox as Int · Issue #29 · treeform/pixie-python
Description: I have a test SVG image with non-integer viewbox size, and when trying to read this with pixie-python I get the following error: strutils.nim(1072) parseInt invalid integer: 215.9 It seems to be trying to parse it as an integer, but I do...
Open Graph Description: I have a test SVG image with non-integer viewbox size, and when trying to read this with pixie-python I get the following error: strutils.nim(1072) parseInt invalid integer: 215.9 It seems to be tr...
X Description: I have a test SVG image with non-integer viewbox size, and when trying to read this with pixie-python I get the following error: strutils.nim(1072) parseInt invalid integer: 215.9 It seems to be tr...
Opengraph URL: https://github.com/treeform/pixie-python/issues/29
X: @github
Domain: github.com
IPv4 address: 140.82.114.4
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Pixie Trying to Parse SVG Viewbox as Int","articleBody":"I have a test SVG image with non-integer viewbox size, and when trying to read this with pixie-python I get the following error:\n```\nstrutils.nim(1072) parseInt\ninvalid integer: 215.9\n```\nIt seems to be trying to parse it as an integer, but I don't think that's necessarily a requirement for SVGs. I assume this is because it needs to have integer size for exporting to a raster image? In which case it should probably be rounded or something?\n\nhttps://developer.mozilla.org/en-US/docs/Web/SVG/Reference/Attribute/viewBox\n\nhere's the full SVG that I was trying, in case that's helpful:\n\n```\n\u003c?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"no\"?>\n\u003c!-- Created with Inkscape (http://www.inkscape.org/) -->\n\n\u003csvg\n width=\"8.5in\"\n height=\"11in\"\n viewBox=\"0 0 215.9 279.4\"\n version=\"1.1\"\n id=\"svg1\"\n inkscape:version=\"1.4 (e7c3feb100, 2024-10-09)\"\n sodipodi:docname=\"red.svg\"\n xmlns:inkscape=\"http://www.inkscape.org/namespaces/inkscape\"\n xmlns:sodipodi=\"http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd\"\n xmlns=\"http://www.w3.org/2000/svg\"\n xmlns:svg=\"http://www.w3.org/2000/svg\">\n \u003csodipodi:namedview\n id=\"namedview1\"\n pagecolor=\"#ffffff\"\n bordercolor=\"#000000\"\n borderopacity=\"0.25\"\n inkscape:showpageshadow=\"2\"\n inkscape:pageopacity=\"0.0\"\n inkscape:pagecheckerboard=\"0\"\n inkscape:deskcolor=\"#d1d1d1\"\n inkscape:document-units=\"mm\"\n inkscape:zoom=\"0.51969075\"\n inkscape:cx=\"343.4735\"\n inkscape:cy=\"616.71293\"\n inkscape:window-width=\"1920\"\n inkscape:window-height=\"1012\"\n inkscape:window-x=\"0\"\n inkscape:window-y=\"0\"\n inkscape:window-maximized=\"1\"\n inkscape:current-layer=\"layer1\" />\n \u003cdefs\n id=\"defs1\" />\n \u003cg\n inkscape:label=\"Layer 1\"\n inkscape:groupmode=\"layer\"\n id=\"layer1\">\n \u003crect\n style=\"font-variation-settings:'wght' 700;fill:#ff0000;fill-opacity:1;stroke-width:6.88414;stroke-linejoin:round;stroke-dashoffset:21.1654;paint-order:markers fill stroke\"\n id=\"rect1\"\n width=\"215.89999\"\n height=\"279.39999\"\n x=\"0\"\n y=\"0\" />\n \u003c/g>\n\u003c/svg>\n```","author":{"url":"https://github.com/Icosahunter","@type":"Person","name":"Icosahunter"},"datePublished":"2025-12-07T22:49:02Z","url":"https://github.com/treeform/pixie-python/issues/29"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| 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:8aab2f7c-c59d-8d5e-a4de-6f23286025f7 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C8A0:329C7F:B996B7:FBA09B:6B04877D |
| html-safe-nonce | 8ae825493112147ad4275c13bb0f292dd50cc59099a40c2b10ead472e435687e |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDOEEwOjMyOUM3RjpCOTk2Qjc6RkJBMDlCOjZCMDQ4NzdEIiwidmlzaXRvcl9pZCI6IjU4NTY1ODU5MjQ1MTA3NzkyNjEiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 61036411d57e31d5c8445506321f91bc9e79bc9583c7fe18c6d9a86544dbe663 |
| hovercard-subject-tag | issue:3704087154 |
| github-keyboard-shortcuts | repository,source-code,file-tree,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/treeform/pixie-python/29/issue_layout |
| twitter:image | https://opengraph.githubassets.com/ba4659afbdffbcd75c38c5ebb2548fb83daa61d3b44f410bed90fd286ef79dc3/treeform/pixie-python/issues/29 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/ba4659afbdffbcd75c38c5ebb2548fb83daa61d3b44f410bed90fd286ef79dc3/treeform/pixie-python/issues/29 |
| og:image:alt | I have a test SVG image with non-integer viewbox size, and when trying to read this with pixie-python I get the following error: strutils.nim(1072) parseInt invalid integer: 215.9 It seems to be tr... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | Icosahunter |
| hostname | github.com |
| expected-hostname | github.com |
| None | 1d5c152376e38b7d2e37f3d5179be29a73bee93b85110da28a4eebe1159cdc70 |
| turbo-cache-control | no-preview |
| go-import | github.com/treeform/pixie-python git https://github.com/treeform/pixie-python.git |
| octolytics-dimension-user_id | 125948 |
| octolytics-dimension-user_login | treeform |
| octolytics-dimension-repository_id | 399247825 |
| octolytics-dimension-repository_nwo | treeform/pixie-python |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 399247825 |
| octolytics-dimension-repository_network_root_nwo | treeform/pixie-python |
| 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 | f5017e8ff4ea25a8011fcf0f2a0e430c60dc86c8 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width