ImageThumbnailCreator.Core 1.0.1

There is a newer version of this package available.
See the version list below for details.
dotnet add package ImageThumbnailCreator.Core --version 1.0.1                
NuGet\Install-Package ImageThumbnailCreator.Core -Version 1.0.1                
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="ImageThumbnailCreator.Core" Version="1.0.1" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add ImageThumbnailCreator.Core --version 1.0.1                
#r "nuget: ImageThumbnailCreator.Core, 1.0.1"                
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install ImageThumbnailCreator.Core as a Cake Addin
#addin nuget:?package=ImageThumbnailCreator.Core&version=1.0.1

// Install ImageThumbnailCreator.Core as a Cake Tool
#tool nuget:?package=ImageThumbnailCreator.Core&version=1.0.1                

Image Thumbnail Creator .NET 5

Short description

  • Create thumbnails from images
  • Save the original with the thumbnail version for easy links to full resolution version
  • Downsize large resolution images and compress thumbnails to your desired level

Excellent addition for custom blog sites, local file management, and even a tool to quickly downsize images for your custom content.

  • Original uploaded images can be saved to the file system.

  • Thumbnails will be saved to the file system automatically.

Repository

https://github.com/godfathr/ImageThumbnailCreator.Core.

Sample projects

Sample usage

private static string _thumbnailAndOriginalSaveFolder = Path.Combine(_testImageFolder, @"ProcessedImages");

private Thumbnailer _thumbnailer = new Thumbnailer();

//Save the original photo at its original resolution
string imageLocation = Path.Combine(_testImageFolder, fileName);

IFormFile formFile = _fixture.ConvertFileToStream(imageLocation, _fixture.GetImageTypeEnum(fileName), fileName);

Specify a compression level:

//With specified compression level of 75
string thumbnailSaveLocation = await _thumbnailer.Create(250, _thumbnailAndOriginalSaveFolder, _thumbnailAndOriginalSaveFolder, formFile, 75L);

OR if a compression value is not provided, the default 85 will be used:

string thumbnailSaveLocation = await _thumbnailer.Create(250, _thumbnailAndOriginalSaveFolder, _thumbnailAndOriginalSaveFolder, formFile);

https://dotnet.microsoft.com/download/dotnet/5.0

https://github.com/godfathr/ImageThumbnailCreator.Core/issues

License

https://github.com/godfathr/ImageThumbnailCreator.Core/blob/main/LICENSE

Product Compatible and additional computed target framework versions.
.NET net5.0 is compatible.  net5.0-windows was computed.  net6.0 was computed.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.1.3 598 9/25/2021
1.0.1 352 9/24/2021

Initial build of the .NET 5 version of the ImageThumbnailCreator.