{"id":15687061,"url":"https://github.com/fornever/svgbuild","last_synced_at":"2025-05-07T18:53:29.926Z","repository":{"id":140632437,"uuid":"111991647","full_name":"ForNeVeR/SvgBuild","owner":"ForNeVeR","description":"Managed tool set to render SVG images","archived":false,"fork":false,"pushed_at":"2023-05-14T17:52:14.000Z","size":72,"stargazers_count":9,"open_issues_count":3,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-22T04:46:06.032Z","etag":null,"topics":["dotnet","msbuild","render","svg"],"latest_commit_sha":null,"homepage":null,"language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ForNeVeR.png","metadata":{"files":{"readme":"Readme.md","changelog":null,"contributing":null,"funding":null,"license":"License.md","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-11-25T09:24:34.000Z","updated_at":"2024-05-10T15:22:49.000Z","dependencies_parsed_at":"2023-05-19T15:46:03.851Z","dependency_job_id":null,"html_url":"https://github.com/ForNeVeR/SvgBuild","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ForNeVeR%2FSvgBuild","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ForNeVeR%2FSvgBuild/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ForNeVeR%2FSvgBuild/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ForNeVeR%2FSvgBuild/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ForNeVeR","download_url":"https://codeload.github.com/ForNeVeR/SvgBuild/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243007275,"owners_count":20220797,"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":["dotnet","msbuild","render","svg"],"created_at":"2024-10-03T17:42:50.871Z","updated_at":"2025-03-11T09:32:10.495Z","avatar_url":"https://github.com/ForNeVeR.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"SvgBuild [![NuGet][badge-nuget]][nuget]\n========\n\nThis is a .NET based tool set to save SVG to raster images. Includes a\nterminal-based program and a MSBuild task. It is compatible with .NET Framework\n4.6.1 and Mono.\n\nBuild\n-----\n\nThis program uses [MSBuild][msbuild] (included in [Visual\nStudio][visual-studio] distribution on Windows or [Mono][mono] on other\noperation systems). To build the program, run the following script:\n\n```console\n$ nuget restore\n$ msbuild /p:Configuration=Release SvgBuild.sln\n```\n\nIt will create the `SvgBuild.Console/bin/Release/SvgBuild.Console.exe` binary\nfile.\n\nUsage\n-----\n\nSvgBuild basically takes two required parameters: input and output path. Input\npath should lead to a valid SVG file, output path should lead to a valid place\nto save the resulting image. Output image format will be determined by the\noutput file extension. The supported file extensions are:\n\n- `.bmp`\n- `.gif`\n- `.ico`\n- `.jpeg`, `.jpg`\n- `.png`\n- `.tiff`\n\nThe image will be rescaled to the new size, if specified. Otherwise, the size\nof the original document will be preserved.\n\n### From Terminal\n\nOn Windows:\n\n```console\n$ SvgBuild.Console \u003cpath to the input file\u003e \u003cpath to the output file\u003e [\u003cwidth\u003ex\u003cheight\u003e]\n```\n\nOn other operating systems:\n\n```console\n$ mono SvgBuild.Console.exe \u003cpath to the input file\u003e \u003cpath to the output file\u003e [\u003cwidth\u003ex\u003cheight\u003e]\n```\n\n### From MSBuild\n\nInstall `SvgBuild.MsBuild` package into your project. Your NuGet client should\nautomatically generate the following in your project file:\n\n```xml\n\u003cImport Project=\"..\\packages\\SvgBuild.MsBuild.1.0.0\\build\\SvgBuild.MsBuild.props\"\n        Condition=\"Exists('..\\packages\\SvgBuild.MsBuild.1.0.0\\build\\SvgBuild.MsBuild.props')\" /\u003e\n```\n\nAfter that, you're able to run SVG processing tasks e.g. in the `AfterBuild`\ntarget:\n\n```xml\n\u003cTarget Name=\"SvgBuildTasks\" AfterTargets=\"AfterBuild\"\u003e\n  \u003cSvgBuildTask InputPath=\"$(ProjectDir)..\\SvgBuild.Tests\\Resources\\Image.svg\"\n                OutputPath=\"$(OutDir)Test.bmp\"\n                Width=\"30\"\n                Height=\"60\" /\u003e \u003c!-- Width and Height are optional --\u003e\n\u003c/Target\u003e\n```\n\nUnit Tests\n----------\n\nOn Windows:\n\n```console\n$ dotnet test\n```\n\nOn other operating systems:\n\n```console\n$ mono ~/.nuget/xunit.runner.console.2.3.1/tools/net452/xunit.console.exe SvgBuild.Tests/bin/Release/SvgBuild.Tests.dll\n```\n\nIntegration Tests\n-----------------\n\n```console\n$ pwsh ./SvgBuild.Tests.Integration/Run-IntegrationTests.ps1\n```\n\nPack\n----\n\nTo pack the project before uploading it to NuGet, use the following commands:\n\n```console\n$ nuget restore\n$ msbuild /p:Configuration=Release SvgBuild.sln\n$ nuget pack SvgBuild.MsBuild/SvgBuild.MsBuild.csproj -Tool -Prop Platform=AnyCPU -Prop Configuration=Release\n```\n\n[mono]: http://www.mono-project.com/\n[msbuild]: https://github.com/Microsoft/msbuild\n[nuget]: https://www.nuget.org/packages/SvgBuild.MsBuild\n[visual-studio]: https://www.visualstudio.com/\n\n[badge-nuget]: https://img.shields.io/nuget/v/SvgBuild.MsBuild.svg\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffornever%2Fsvgbuild","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffornever%2Fsvgbuild","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffornever%2Fsvgbuild/lists"}