ImageThumbnailCreator 2.0.1
See the version list below for details.
dotnet add package ImageThumbnailCreator --version 2.0.1
NuGet\Install-Package ImageThumbnailCreator -Version 2.0.1
<PackageReference Include="ImageThumbnailCreator" Version="2.0.1" />
paket add ImageThumbnailCreator --version 2.0.1
#r "nuget: ImageThumbnailCreator, 2.0.1"
// Install ImageThumbnailCreator as a Cake Addin #addin nuget:?package=ImageThumbnailCreator&version=2.0.1 // Install ImageThumbnailCreator as a Cake Tool #tool nuget:?package=ImageThumbnailCreator&version=2.0.1
ImageThumbnailCreator
Create image thumbnails from uploaded image files to help downsize large resolution images that need to be displayed on your website in a smaller resolution.
Excellent addition for custom blog sites or any kind of site that allows image files to be uploaded. You can downsize uploaded images as well as keep the original image if you want!
*Original uploaded images can be saved to the file system. *Thumbnails will be saved to the file system automatically.
Example MVC application is located at https://github.com/godfathr/ThumbnailWebExample
Version 2.0.1 Updates
Added optional image compression parameter. Max value is 100. Min value is 0. Default value is 85. Parameter type is long
.
No updates to existing code are needed. Default value is set in NuGet package
public string Create(float width, string imageFolder, string fullImagePath, long compressionLevel = 85L)
{
//method content here...
}
private Thumbnailer _thumbnailer = new Thumbnailer();
private string ThumbnailFolder = ConfigurationSettings.AppSettings["TestDirectory"];
_thumbnailer.Create(100, ThumbnailFolder, originalFileLocation, 50L); //With specified compression level of 50
OR if a compression value is not provided, the default 85L will be used
_thumbnailer.Create(100, ThumbnailFolder, originalFileLocation);
Version 2.0.0 Updates
Renamed "JpegThumbnailer" to "Thumbnailer". Added tests for PNG, GIF, TIF and BMP image formats. Added validation that prevents upsizing. Removed validation that would break the resizing if the property list had 0 items.
Version 1.0.2 Updates
Added unit tests.
Added parameter checking with meaningful exceptions.
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET Framework | net461 is compatible. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
-
.NETFramework 4.6.1
- No dependencies.
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Added optional JPEG compression to ensure thumbnail images don't end up being larger in disk size than the original uploaded image.