Info
Version: | 1.0.0 |
Author(s): | Joseph Antolick |
Last Update: | Tuesday, December 30, 2014 |
.NET Fiddle: | Create the first Fiddle |
Project Url: | https://github.com/VictorGrunn/EZ-Compress-for-Xamarin |
NuGet Url: | https://www.nuget.org/packages/JosephAntolick.EZCompress1.Plugin |
Install
Install-Package JosephAntolick.EZCompress1.Plugin
dotnet add package JosephAntolick.EZCompress1.Plugin
paket add JosephAntolick.EZCompress1.Plugin
JosephAntolick.EZCompress1.Plugin Download (Unzip the "nupkg" after downloading)
Dependencies
Tags
Compression from 1 to 100% available. Returns a compressed MemoryStream in JPEG format, which can then be saved or displayed.
Great for Xamarin Forms!
Simply install the plugin and call the EZcompress class method with the original image stream, and an integer to choose 1-100% quality.
Example:
EZCompress1.Plugin.CrossEZCompress1.Current.compressImage(_stream, 50);
The above will compress a valid image stream (_stream in the example) with 50% compression, and return the new image as a MemoryStream.
Integers below 1 or above 100 will return an error.