{"id":26405044,"url":"https://github.com/kirkone/kk.aspnetcore.images","last_synced_at":"2025-07-16T04:37:03.138Z","repository":{"id":105785156,"uuid":"130887027","full_name":"kirkone/KK.AspNetCore.Images","owner":"kirkone","description":"This project contains some helpers to make image processing and handling in asp.net core websites easier.","archived":false,"fork":false,"pushed_at":"2023-03-02T01:38:17.000Z","size":78117,"stargazers_count":8,"open_issues_count":8,"forks_count":0,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-07-13T12:32:06.895Z","etag":null,"topics":["dotnetcore","image-processing","imagemagick","taghelper"],"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/kirkone.png","metadata":{"files":{"readme":"README.md","changelog":null,"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}},"created_at":"2018-04-24T16:58:50.000Z","updated_at":"2024-08-16T12:44:28.000Z","dependencies_parsed_at":"2023-03-16T22:30:19.056Z","dependency_job_id":null,"html_url":"https://github.com/kirkone/KK.AspNetCore.Images","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/kirkone/KK.AspNetCore.Images","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kirkone%2FKK.AspNetCore.Images","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kirkone%2FKK.AspNetCore.Images/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kirkone%2FKK.AspNetCore.Images/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kirkone%2FKK.AspNetCore.Images/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kirkone","download_url":"https://codeload.github.com/kirkone/KK.AspNetCore.Images/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kirkone%2FKK.AspNetCore.Images/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265481935,"owners_count":23773976,"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":["dotnetcore","image-processing","imagemagick","taghelper"],"created_at":"2025-03-17T16:50:39.345Z","updated_at":"2025-07-16T04:36:59.786Z","avatar_url":"https://github.com/kirkone.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# KK.AspNetCore.Images\n\nThis project contains some helpers to make image processing and handling in asp.net core websites easier.\n\n## KK.AspNetCore.Images.Processing\n\n\u003e **Caution**: This is not finished jet!\n\nThis is a nuget package containing the middleware for resizing images on request.\n\n### Build\n\nThe build environment for this project is on Visual Studio Team Services and can be found here [kirkone.visualstudio.com](https://kirkone.visualstudio.com/KK.AspNetCore.Images/_releases2?definitionId=2\u0026view=mine\u0026_a=releases)\n\n| Name | Status |\n| --- | --- |\n| KK.AspNetCore.Images-CI | [![Build Status](https://kirkone.visualstudio.com/KK.AspNetCore.Images/_apis/build/status/KK.AspNetCore.Images-CI)](https://kirkone.visualstudio.com/KK.AspNetCore.Images/_build/latest?definitionId=22) |\n| Alpha | [![Alpha](https://kirkone.vsrm.visualstudio.com/_apis/public/Release/badge/5ffc2eec-6944-4a03-a8b9-4f73af2f2237/2/4)](https://kirkone.visualstudio.com/KK.AspNetCore.Images/_release?definitionId=2\u0026_a=releases) |\n| Beta | [![Beta](https://kirkone.vsrm.visualstudio.com/_apis/public/Release/badge/5ffc2eec-6944-4a03-a8b9-4f73af2f2237/2/5)](https://kirkone.visualstudio.com/KK.AspNetCore.Images/_release?definitionId=2\u0026_a=releases) |\n| Release | [![Release](https://kirkone.vsrm.visualstudio.com/_apis/public/Release/badge/5ffc2eec-6944-4a03-a8b9-4f73af2f2237/2/6)](https://kirkone.visualstudio.com/KK.AspNetCore.Images/_release?definitionId=2\u0026_a=releases) |\n\n## KK.AspNetCore.Images.TagHelpers\n\nThe `picture` ThagHelper will take the settings from the `appsettings.json` and adds a `source` for every configured size.\n\n### Attributes\n\n#### src\n\nThis contains the name of the image you want to be used without the extension.  \nYou must provide this attribute otherwise the TagHelper will not be used.\n\n#### alt\n\nHere you can provide a text for the `alt` attribute of the image tag inside the `picture` element.  \nThis attribute is optional.\n\n#### class\n\nHere you can provide a text for the `class` attribute of the image tag inside the `picture` element.  \nThis attribute is optional.\n\n#### style\n\nHere you can provide some additional style. This will be added to the image tag inside the `picture` element.  \nThis attribute is optional.\n\n\n### Example\n\nThe following TagHelper:\n\n```\n\u003cpicture class=\"awesome_image\" style=\"width: 100%;\" src=\"DSC01766\" alt=\"A simple text.\" /\u003e\n```\n\nwill become:\n\n```\n\u003cpicture\u003e\n    \u003csource media=\"(max-width: 450px)\" srcset=\"/images/generated/DSC01766/small.jpg, /images/generated/DSC01766/small2x.jpg 2x\"\u003e\n    \u003csource media=\"(max-width: 600px)\" srcset=\"/images/generated/DSC01766/medium.jpg, /images/generated/DSC01766/medium2x.jpg 2x\"\u003e\n    \u003csource srcset=\"/images/generated/DSC01766/large.jpg\"\u003e\n    \u003cimg class=\"awesome_image\" style=\"width: 100%;\" alt=\"A simple text.\" src=\"DSC01766\"\u003e\n\u003c/picture\u003e\n```\n\n## KK.AspNetCore.Images.Sample.Web\n\nThis web site uses the two helpers above and shows how to use each of them.  \nThe ThagHelper is used on the **Gallery** page.  \nFor the configuration have a look in the `Startup.cs` and `appsettings.json`.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkirkone%2Fkk.aspnetcore.images","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkirkone%2Fkk.aspnetcore.images","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkirkone%2Fkk.aspnetcore.images/lists"}