{"action":"created","issue":{"url":"https://api.github.com/repos/RazrFalcon/svgcleaner/issues/172","repository_url":"https://api.github.com/repos/RazrFalcon/svgcleaner","labels_url":"https://api.github.com/repos/RazrFalcon/svgcleaner/issues/172/labels{/name}","comments_url":"https://api.github.com/repos/RazrFalcon/svgcleaner/issues/172/comments","events_url":"https://api.github.com/repos/RazrFalcon/svgcleaner/issues/172/events","html_url":"https://github.com/RazrFalcon/svgcleaner/issues/172","id":364643673,"node_id":"MDU6SXNzdWUzNjQ2NDM2NzM=","number":172,"title":"svgcleaner creates roundingerrors (XX.X0000000001 and XX.X9999999999)","user":{"login":"JoKalliauer","id":15687581,"node_id":"MDQ6VXNlcjE1Njg3NTgx","avatar_url":"https://avatars1.githubusercontent.com/u/15687581?v=4","gravatar_id":"","url":"https://api.github.com/users/JoKalliauer","html_url":"https://github.com/JoKalliauer","followers_url":"https://api.github.com/users/JoKalliauer/followers","following_url":"https://api.github.com/users/JoKalliauer/following{/other_user}","gists_url":"https://api.github.com/users/JoKalliauer/gists{/gist_id}","starred_url":"https://api.github.com/users/JoKalliauer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JoKalliauer/subscriptions","organizations_url":"https://api.github.com/users/JoKalliauer/orgs","repos_url":"https://api.github.com/users/JoKalliauer/repos","events_url":"https://api.github.com/users/JoKalliauer/events{/privacy}","received_events_url":"https://api.github.com/users/JoKalliauer/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2018-09-27T20:36:52Z","updated_at":"2018-09-30T23:50:53Z","closed_at":null,"author_association":"NONE","body":"Running `svgcleaner 0.9.5` with default-options (or with reduced precision) for [File:Obcine_Slovenija_2006_Crensovci.svg](https://commons.wikimedia.org/wiki/File:Obcine_Slovenija_2006_Crensovci.svg) leads to an increase of filesize of 75.71% without changing the context.\r\n\r\n> svgcleaner [input.svg](https://github.com/RazrFalcon/svgcleaner/files/2425817/input.svg.txt) [output.svg](https://github.com/RazrFalcon/svgcleaner/files/2425824/output.svg.txt) --allow-bigger-file --indent 1 --coordinates-precision 1 --paths-coordinates-precision 1 --properties-precision 1 --transforms-precision 1\r\n\r\n`Your image is -75.71% smaller now.`\r\n\r\n# Input\r\n<!--Insert svg-file-->\r\n```svg\r\n<path d=\"M432376-81965l48.2 116.3 49.4 120.4 47.3 115 54.3 132.3 48.5 119.2 61.4 145.5 54.9 133.4 54 128.5-19.8 24.8-29 6-54-5-38 2-73-4-22-1-22 16-36 44-16.5 22-36 21-30 30-21 11-14 17-10 33-39 26-16 27-2 26 5 30-4 22-10 60-21 47-22 28-32 25-6 63-34 11-28-20-34 4-40-16-82 17-70-43 4-21-33-8-26 24-174-21-74 179-57.5 28-70 84-71 30-2 21-49 6-56-42-258 364-297 418-260.5 363-47 67 221 225-364 108-361 111-539.5 166-638 197-480 145-722.5 217-570 172.5-477.8 146.3-115.2-13.7-131.3.5-15.8 3.6-98.5.5-37.5 2.3-148.1 1.8-75.9 1.3-31 11.1-5-10.7-131 9.7-383.6 15.8-214.3-206.3-119.3-116.6-121-118.6-116.7-118.4-108.6-109.1-138.9-50.1 55.5-21.4-12.6-50.7-100.2-112.6-236.4 28 43.4-149.6-141.3 34.8-88 23.4-39.9 63.1-128.4-38.3 28.2-238.8 27.7-231.8 18.4-158 12.9-100 11.8-101.9 14.3-117.5 8.6-58.5 12.4-104.4 1-99-.4-97 2.7-109 1.4-52 69.3 15.8 50.9 18 9.2-.4 13.8-8.3 20.5-19.6 7.6-40.1 31.5-9.5 36.3 14 25.2 13.1 36.9 10.7 21.4-4.3 59 29.2 50.4-7 17.4-10.3 29.5-28.8 24.2-15.5 8.9-1.7 22.1 5.6 36.9-10.5 31.3-1.1 10-36.4-29-8.5-31.6-11.5-56.3-20-54.6-23.5-70.6-74.7-90.4-95.2 26.4-44.6 53.8-91.7 57-95.3\r\n```\r\n\r\n# Output\r\n<!--Insert svg-file-->\r\n```svg\r\n<path d=\"m432376-81965 48.20000000001 116.3 49.40000000002 120.39999999999 47.29999999999 115 54.29999999999 132.3 48.5 119.2 61.40000000002 145.5 54.90000000002 133.39999999999 54 128.5-19.79999999999 24.8-29 6-54-5-38 2-73-4-22-1-22 16-36 44-16.5 22-36 21-30 30-21 11-14 17-10 33-39 26-16 27-2 26 5 30-4 22-10 60-21 47-22 28-32 25-6 63-34 11-28-20-34 4-40-16-82 17-70-43 4-21-33-8-26 24-174-21-74 179-57.5 28-70 84-71 30-2 21-49 6-56-42-258 364-297 418-260.5 363-47 67 221 225-364 108-361 111-539.5 166-638 197-480 145-722.5 217-570 172.5-477.79999999999 146.3-115.20000000001-13.7-131.29999999999.5-15.79999999999 3.60000000001-98.5.5-37.5 2.3-148.09999999998 1.8-75.90000000002 1.3-31 11.10000000001-5-10.7-131 9.7-383.59999999998 15.8-214.29999999999-206.3-119.29999999999-116.60000000001-121-118.60000000001-116.70000000001-118.39999999999-108.59999999998-109.10000000001-138.90000000002-50.10000000001 55.5-21.39999999999-12.59999999998-50.7-100.20000000001-112.60000000001-236.40000000002 28 43.40000000002-149.60000000001-141.29999999999 34.8-88 23.39999999999-39.90000000002 63.10000000001-128.40000000002-38.3 28.20000000001-238.8 27.70000000001-231.8 18.40000000002-158 12.90000000002-100 11.79999999999-101.89999999999 14.29999999999-117.5 8.59999999998-58.5 12.40000000002-104.39999999999 1-99-.40000000002-97 2.70000000001-109 1.40000000002-52 69.29999999999 15.8 50.90000000002 18 9.20000000001-.39999999999 13.79999999999-8.3 20.5-19.60000000001 7.59999999998-40.10000000001 31.5-9.5 36.29999999999 14 25.20000000001 13.10000000001 36.90000000002 10.7 21.40000000002-4.3 59 29.2 50.40000000002-7 17.40000000002-10.3 29.5-28.8 24.20000000001-15.5 8.90000000002-1.7 22.09999999998 5.60000000001 36.90000000002-10.5 31.29999999999-1.10000000001 10-36.39999999999-29-8.5-31.59999999998-11.5-56.29999999999-20-54.59999999998-23.5-70.59999999998-74.7-90.40000000002-95.2 26.40000000002-44.60000000001 53.79999999999-91.7 57-95.3 \r\n```\r\n\r\n----\r\n\r\nIt migth occour because of the big sizes in ` viewBox=\"368988 -197331 261299 170538\"`.\r\nIf you can't fix it easily, you should maybe consider optional additional rounding after prozessing.\r\n\r\n<details>\r\n\r\n<summary> Copyright </summary>\r\n\r\n\r\nLicense: Public Domain\r\n\r\nAuthor: Source of the public data is GURS (Geodetska uprava Republike Slovenije or Surveying and Mapping Authority of the Republic of Slovenia). Converted from Shapefile to SVG with shp2svg and prepared for Wikipedia by romanm .\r\n\r\nDetails, Source: https://commons.wikimedia.org/wiki/File:Obcine_Slovenija_2006_Crensovci.svg\r\n\r\n</details>\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/RazrFalcon/svgcleaner/issues/comments/425761629","html_url":"https://github.com/RazrFalcon/svgcleaner/issues/172#issuecomment-425761629","issue_url":"https://api.github.com/repos/RazrFalcon/svgcleaner/issues/172","id":425761629,"node_id":"MDEyOklzc3VlQ29tbWVudDQyNTc2MTYyOQ==","user":{"login":"lexeii","id":1282093,"node_id":"MDQ6VXNlcjEyODIwOTM=","avatar_url":"https://avatars3.githubusercontent.com/u/1282093?v=4","gravatar_id":"","url":"https://api.github.com/users/lexeii","html_url":"https://github.com/lexeii","followers_url":"https://api.github.com/users/lexeii/followers","following_url":"https://api.github.com/users/lexeii/following{/other_user}","gists_url":"https://api.github.com/users/lexeii/gists{/gist_id}","starred_url":"https://api.github.com/users/lexeii/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lexeii/subscriptions","organizations_url":"https://api.github.com/users/lexeii/orgs","repos_url":"https://api.github.com/users/lexeii/repos","events_url":"https://api.github.com/users/lexeii/events{/privacy}","received_events_url":"https://api.github.com/users/lexeii/received_events","type":"User","site_admin":false},"created_at":"2018-09-30T23:50:53Z","updated_at":"2018-09-30T23:50:53Z","author_association":"NONE","body":"Confirmed for `svgcleaner 0.9.1` (custom build on 32bit Linux with rust-1.20.0) .\r\n\r\nTwo runs: with abridged options (`svgcleaner input.svg output.svg --allow-bigger-file --indent 1`) and with full aforementioned options. Results are the same:\r\n```\r\ninput.svg  2.0 MB (2137880 B)\r\noutput.svg 4.1 MB (4292467 B)\r\n```\r\n\r\nContains numbers like `48.200000000012` and `.599999999977`."}}
{"actor":{"display_login":"lexeii"}}