ImageThumbnailCreator 2.0.1

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.

Install-Package ImageThumbnailCreator -Version 2.0.1
dotnet add package ImageThumbnailCreator --version 2.0.1
<PackageReference Include="ImageThumbnailCreator" Version="2.0.1" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add ImageThumbnailCreator --version 2.0.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

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.

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.

Release Notes

Added optional JPEG compression to ensure thumbnail images don't end up being larger in disk size than the original uploaded image.

  • .NETFramework 4.6.1

    • No dependencies.

This package is not used by any popular GitHub repositories.

Version History

Version Downloads Last updated
2.0.1 66 11/24/2019
2.0.0 125 5/24/2019
1.0.2 203 4/20/2019
1.0.1 151 3/22/2019