{"id":19100152,"url":"https://github.com/Tagliatti/NetBarcode","last_synced_at":"2025-04-18T17:32:49.968Z","repository":{"id":37821863,"uuid":"114487496","full_name":"Tagliatti/NetBarcode","owner":"Tagliatti","description":"Barcode generation library written in C# and .NET Standard 2","archived":false,"fork":false,"pushed_at":"2024-07-23T13:02:39.000Z","size":98,"stargazers_count":336,"open_issues_count":13,"forks_count":68,"subscribers_count":16,"default_branch":"master","last_synced_at":"2024-11-05T04:42:17.687Z","etag":null,"topics":["barcode","c-sharp","codigo-de-barras","dot-net","dotnet","dotnet-core","dotnet5","dotnetcore"],"latest_commit_sha":null,"homepage":"","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/Tagliatti.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null},"funding":{"github":"tagliatti"}},"created_at":"2017-12-16T20:11:21.000Z","updated_at":"2024-11-03T00:09:41.000Z","dependencies_parsed_at":"2023-01-19T12:34:02.804Z","dependency_job_id":null,"html_url":"https://github.com/Tagliatti/NetBarcode","commit_stats":null,"previous_names":[],"tags_count":20,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Tagliatti%2FNetBarcode","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Tagliatti%2FNetBarcode/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Tagliatti%2FNetBarcode/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Tagliatti%2FNetBarcode/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Tagliatti","download_url":"https://codeload.github.com/Tagliatti/NetBarcode/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":223581918,"owners_count":17168655,"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":["barcode","c-sharp","codigo-de-barras","dot-net","dotnet","dotnet-core","dotnet5","dotnetcore"],"created_at":"2024-11-09T03:52:31.606Z","updated_at":"2024-11-09T03:53:08.341Z","avatar_url":"https://github.com/Tagliatti.png","language":"C#","readme":"\u003cp align=\"center\"\u003e\n    \u003cimg src=\"https://i.imgur.com/C8cdJ7x.png\" alt=\"NetBarcode\"\u003e\n\u003c/p\u003e\n\n# NetBarcode ![nuget](https://img.shields.io/nuget/v/NetBarcode) ![Donwloads](https://img.shields.io/nuget/dt/NetBarcode)\n\nBarcode generation library written in .NET Core compatible with .NET Standard 2.\n\n## Supported barcodes:\n\n* CODE128\n  * CODE128 (automatic mode switching)\n  * CODE128 A/B/C\n* EAN\n  * EAN-13\n  * EAN-8\n* CODE11\n* CODE39\n* CODE39E\n* CODE93\n* Codabar\n\n## Install\n\nOn Nuget:\n```\nPM\u003e Install-Package NetBarcode\n```\n\n.NET CLI\n```\n\u003e dotnet add package NetBarcode\n```\n\n## NuGet\nhttps://www.nuget.org/packages/NetBarcode\n\n## Requirements\nThis library uses `System.Drawing.Common` which requires the following installed packages:\n```\nsudo apt install libc6-dev \nsudo apt install libgdiplus\n```\nMac\n```\nbrew update\nbrew install mono-libgdiplus\n```\n\n## Using\n\n``` c#\nvar barcode = new Barcode(\"543534\"); // default: Code128\n```\nChange barcode type\n``` c#\nvar barcode = new Barcode(\"543534\", Type.Code93);\n```\nShow label\n``` c#\nvar barcode = new Barcode(\"543534\", Type.Code128, true);\n```\nSaving in a image file\n``` c#\nvar value = barcode.SaveImageFile(\"./path\"); // default: ImageFormat.Jpeg\n```\nChange image format\n``` c#\nvar value = barcode.SaveImageFile(\"./path\", ImageFormat.Png); // formats: Bmp, Gif, Jpeg, Png...\n```\nGet string with base64 image to use in HTML\n``` c#\nvar value = barcode.GetBase64Image();\n```\nTo manipulate the image\n``` c#\nvar image = barcode.GetImage();\n```\n\n## Version 1.5\nImageSharp was added in place of System.Drawing due to break of support from .NET 6, more information [click here](https://docs.microsoft.com/en-us/dotnet/core/compatibility/core-libraries/6.0/system-drawing-common-windows-only).\nThere is a small compatibility break only if you are manipulating the image with the GetImage method or customizing font and color. In these cases the namespaces have changed to `SixLabors.ImageSharp`.\n\n## License\n\nNetBarcode is shared under the MIT license. This means you can modify and use it however you want, even for comercial use. But please give this repository a ⭐️.\n\n## Donate\nIf you found it useful, please consider paying me a coffee.\n\n[![paypal](https://www.paypalobjects.com/en_US/i/btn/btn_donateCC_LG.gif)](https://www.paypal.com/donate?hosted_button_id=D42N6KUH47YHW)\n\n![paypal](donate.png)\n","funding_links":["https://github.com/sponsors/tagliatti","https://www.paypal.com/donate?hosted_button_id=D42N6KUH47YHW"],"categories":["dotnet"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FTagliatti%2FNetBarcode","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FTagliatti%2FNetBarcode","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FTagliatti%2FNetBarcode/lists"}