{"id":18896137,"url":"https://github.com/tinify/tinify-net","last_synced_at":"2025-05-16T13:03:29.539Z","repository":{"id":16381984,"uuid":"79846222","full_name":"tinify/tinify-net","owner":"tinify","description":".NET client for the Tinify API.","archived":false,"fork":false,"pushed_at":"2025-03-19T08:28:12.000Z","size":394,"stargazers_count":52,"open_issues_count":1,"forks_count":26,"subscribers_count":11,"default_branch":"master","last_synced_at":"2025-04-13T06:26:10.006Z","etag":null,"topics":["c-sharp","image-compression","image-optimization","tinyjpg","tinypng"],"latest_commit_sha":null,"homepage":"https://tinypng.com/developers","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/tinify.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGES.md","contributing":null,"funding":null,"license":"LICENSE","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,"zenodo":null}},"created_at":"2017-01-23T20:45:34.000Z","updated_at":"2025-03-19T08:27:04.000Z","dependencies_parsed_at":"2024-07-30T08:14:04.876Z","dependency_job_id":"59637aca-2b45-44a4-9733-ce591f6524bb","html_url":"https://github.com/tinify/tinify-net","commit_stats":{"total_commits":108,"total_committers":8,"mean_commits":13.5,"dds":0.5277777777777778,"last_synced_commit":"e81f50dea943d8f0189f049e5c8f7c1e26e21832"},"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tinify%2Ftinify-net","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tinify%2Ftinify-net/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tinify%2Ftinify-net/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tinify%2Ftinify-net/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tinify","download_url":"https://codeload.github.com/tinify/tinify-net/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254535826,"owners_count":22087398,"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":["c-sharp","image-compression","image-optimization","tinyjpg","tinypng"],"created_at":"2024-11-08T08:32:39.965Z","updated_at":"2025-05-16T13:03:29.515Z","avatar_url":"https://github.com/tinify.png","language":"C#","readme":"[![MIT License](http://img.shields.io/badge/license-MIT-green.svg) ](https://github.com/tinify/tinify-python/blob/main/LICENSE)\n[![CI_CD](https://github.com/tinify/tinify-net/actions/workflows/ci-cd.yml/badge.svg)](https://github.com/tinify/tinify-net/actions/workflows/ci-cd.yml)\n[![Nuget](https://img.shields.io/nuget/v/Tinify)](https://www.nuget.org/packages/Tinify)\n\n# Tinify API client for .NET\n\n.NET client for the Tinify API, used for [TinyPNG](https://tinypng.com) and [TinyJPG](https://tinyjpg.com). Tinify compresses your images intelligently. Read more at [http://tinify.com](http://tinify.com).\n\n## Documentation\n\n[Go to the documentation for the .NET client](https://tinypng.com/developers/reference/dotnet).\n\n## Installation\n\nInstall the API client:\n\n```\nInstall-Package Tinify\n```\n\nOr add this to your `project.json`:\n\n```json\n{\n  \"dependencies\": {\n    \"Tinify\": \"*\",\n  }\n}\n```\n\n## Usage\n\n```csharp\nusing TinifyAPI;\n\nclass Compress\n{\n  static void Main()\n  {\n    Tinify.Key = \"YOUR_API_KEY\";\n    Tinify.FromFile(\"unoptimized.png\").ToFile(\"optimized.png\").Wait();\n  }\n}\n```\n\n## Running tests\n\n```\ndotnet restore\ndotnet test test/Tinify.Tests\n```\n\n### Integration tests\n\n```\ndotnet restore\nTINIFY_KEY=$YOUR_API_KEY dotnet test test/Tinify.Tests.Integration\n```\nOr add a `.env` file to the `/test/Tinify.Tests.Integration` directory in the format\n```\nTINIFY_KEY=\u003cYOUR_API_KEY\u003e\n```\n\n## License\n\nThis software is licensed under the MIT License. [View the license](LICENSE).\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftinify%2Ftinify-net","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftinify%2Ftinify-net","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftinify%2Ftinify-net/lists"}