{"id":20156138,"url":"https://github.com/openfun/svg-converter","last_synced_at":"2025-03-03T01:44:47.545Z","repository":{"id":79716956,"uuid":"99566499","full_name":"openfun/svg-converter","owner":"openfun","description":"DEPRECATED A simple server to generate pdf files from svg","archived":false,"fork":false,"pushed_at":"2017-08-28T16:28:48.000Z","size":22,"stargazers_count":0,"open_issues_count":1,"forks_count":2,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-01-13T12:48:43.534Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/openfun.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-08-07T10:30:45.000Z","updated_at":"2019-10-09T10:38:20.000Z","dependencies_parsed_at":"2023-05-15T10:15:29.547Z","dependency_job_id":null,"html_url":"https://github.com/openfun/svg-converter","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/openfun%2Fsvg-converter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/openfun%2Fsvg-converter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/openfun%2Fsvg-converter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/openfun%2Fsvg-converter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/openfun","download_url":"https://codeload.github.com/openfun/svg-converter/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241596241,"owners_count":19988041,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-13T23:37:44.256Z","updated_at":"2025-03-03T01:44:47.539Z","avatar_url":"https://github.com/openfun.png","language":"Python","readme":"SVG Converter REST API\n----------------------\n\nThis is for now a very simple server that will accept an SVG file (POST) as an input and later be able to convert it\n to a PDF or PNG file. This is using Inkscape in the background and can be made to use Cairosvg.\n\nExample of use via curl:\n\n\u003e  curl -X POST -F 'file=@_model.svg' -H 'Authorization: Token 48de857eedb88797209521a1695b0dc8d614afd4' http://127.0.0.1:8989/svgfiles/\n\n\nIt will return a file identifier which will be then used to get a specific version of the file (pdf or png): \n\n\u003e curl -X GET  http://127.0.0.1:8989/converter/png/converterc7nu1vbyr \u003e test.png\n\n\nRequirements\n------------\n\nIt can be installed as a simple django application using a deployment script such as \nhttps://github.com/jcalazan/ansible-django-stack\n\n \nTODO\n----\n\nFor now this is very basic, but we could imagine (it is actually very crude, but works...):\n- caching : make sure that we don't need to transform the file each time\n- use of django storage\n- storage of svg in the database instead of in the temp file folder\n\n\n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopenfun%2Fsvg-converter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fopenfun%2Fsvg-converter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopenfun%2Fsvg-converter/lists"}