Last active
September 20, 2019 23:42
-
-
Save danielkon96/b5536d537381af5d7412ea8c57edbbec to your computer and use it in GitHub Desktop.
Compress images for Android.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/// <summary> | |
/// Compress Android images before uploading them to Azure Blob Storage. | |
/// </summary> | |
/// <param name="totalImages"></param> | |
/// <returns></returns> | |
private List<string> CompressAllImages(List<string> totalImages) | |
{ | |
int displayCount = 1; | |
int totalCount = totalImages.Count; | |
List<string> compressedImages = new List<string>(); | |
foreach (string path in totalImages) | |
{ | |
compressedImages.Add(DependencyService.Get<ICompressImages>().CompressImage(path)); | |
displayCount++; | |
} | |
return compressedImages; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment