https://github.com/kirkone/kk.aspnetcore.images
This project contains some helpers to make image processing and handling in asp.net core websites easier.
https://github.com/kirkone/kk.aspnetcore.images
dotnetcore image-processing imagemagick taghelper
Last synced: 11 months ago
JSON representation
This project contains some helpers to make image processing and handling in asp.net core websites easier.
- Host: GitHub
- URL: https://github.com/kirkone/kk.aspnetcore.images
- Owner: kirkone
- License: mit
- Created: 2018-04-24T16:58:50.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2023-03-02T01:38:17.000Z (over 3 years ago)
- Last Synced: 2025-07-13T12:32:06.895Z (11 months ago)
- Topics: dotnetcore, image-processing, imagemagick, taghelper
- Language: C#
- Homepage:
- Size: 74.5 MB
- Stars: 8
- Watchers: 5
- Forks: 0
- Open Issues: 8
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# KK.AspNetCore.Images
This project contains some helpers to make image processing and handling in asp.net core websites easier.
## KK.AspNetCore.Images.Processing
> **Caution**: This is not finished jet!
This is a nuget package containing the middleware for resizing images on request.
### Build
The 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&view=mine&_a=releases)
| Name | Status |
| --- | --- |
| KK.AspNetCore.Images-CI | [](https://kirkone.visualstudio.com/KK.AspNetCore.Images/_build/latest?definitionId=22) |
| Alpha | [](https://kirkone.visualstudio.com/KK.AspNetCore.Images/_release?definitionId=2&_a=releases) |
| Beta | [](https://kirkone.visualstudio.com/KK.AspNetCore.Images/_release?definitionId=2&_a=releases) |
| Release | [](https://kirkone.visualstudio.com/KK.AspNetCore.Images/_release?definitionId=2&_a=releases) |
## KK.AspNetCore.Images.TagHelpers
The `picture` ThagHelper will take the settings from the `appsettings.json` and adds a `source` for every configured size.
### Attributes
#### src
This contains the name of the image you want to be used without the extension.
You must provide this attribute otherwise the TagHelper will not be used.
#### alt
Here you can provide a text for the `alt` attribute of the image tag inside the `picture` element.
This attribute is optional.
#### class
Here you can provide a text for the `class` attribute of the image tag inside the `picture` element.
This attribute is optional.
#### style
Here you can provide some additional style. This will be added to the image tag inside the `picture` element.
This attribute is optional.
### Example
The following TagHelper:
```
```
will become:
```

```
## KK.AspNetCore.Images.Sample.Web
This web site uses the two helpers above and shows how to use each of them.
The ThagHelper is used on the **Gallery** page.
For the configuration have a look in the `Startup.cs` and `appsettings.json`.