Microservice (REST API) for generating thumbnails.
appsettings.Development.json in the same folder as HiP-ThumbnailService.csproj with the following content, replacing "YOUR URL PREFIX" with a valid URL according to the documentation for ThumbnailConfig.HostUrl:
{
"Thumbnails": {
"HostUrl": "YOUR URL PREFIX"
}
}
dotnet run from the project folder containing HiP-ThumbnailService.csprojThe app is preconfigured to run on dev machines with minimal manual configuration. See appsettings.json for a list of configuration fields and their default values.
When requesting thumbnails via GET /api/Thumbnails?Url=..., the thumbnail service retrieves the original image from another server or service, resizes and crops the image, and then returns it. The URL to the original image is constructed from two parts:
?Url=Thumbnails of different sizes and formats are cached. When the original image changes, the service owning the image needs to clear the thumbnail cache for that image by calling DELETE /api/Thumbnails?Url=..., otherwise the thumbnail service will continue to return the outdated, cached thumbnails.
Content type
Image
Digest
Size
563.7 MB
Last updated
about 9 years ago
docker pull hipcms/thumbnailservice