Skip to content
master
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 

README.md

image-fix

Simple .NET utility to scale and crop an image to create a preview/thumbnail.

Usage

This project provides a single class, CodersBlock.ImageFix.ImageFixer, which provides a single static function, ResizeImage(). This function takes the following parameters:

  • byte[] imageFile - The image as a byte array
  • int newWidth - Width to scale and/or crop the image to
  • int newHeight - Height to scale and/or crop the image to
  • long quality - The quality of the resulting JPG (100 is the max)

ResizeImage() returns a byte array for a new resized image that preserves the original image's aspect ratio.

Feel free to incorporate the source code, or just build and use the DLL.

About

Simple .NET utility to scale and crop an image to create a preview/thumbnail.

Resources

License

Releases

No releases published

Languages

You can’t perform that action at this time.