From e86e2bff70c01d684c5c1d425926cbaded32d26d Mon Sep 17 00:00:00 2001 From: Youssef Victor Date: Tue, 25 Jun 2024 11:01:13 +0300 Subject: [PATCH 1/2] fix: Consider exif orientation --- Additions/ImageLoader.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Additions/ImageLoader.cs b/Additions/ImageLoader.cs index 4875227..53f98d7 100644 --- a/Additions/ImageLoader.cs +++ b/Additions/ImageLoader.cs @@ -16,7 +16,7 @@ using Bitmap = Android.Graphics.Bitmap; namespace Com.Nostra13.Universalimageloader.Core { - public partial class ImageLoader + public partial class ImageLoader { public Task LoadImageAsync(CancellationToken ct, string uri, ImageView imageView, Size? targetSize = null) { @@ -96,6 +96,7 @@ namespace Com.Nostra13.Universalimageloader.Core options = options ?? new DisplayImageOptions.Builder() .CacheInMemory(true) .CacheOnDisk(true) + .ConsiderExifParams(true) .Build(); // Propagate cancellation to the managed TCS, even though we don't propagate it to Universal Image Loader. This is because UIL has From 45a5b0b2b3e4afd6a06396ed8bd3a3e34d742cd7 Mon Sep 17 00:00:00 2001 From: Youssef Victor Date: Tue, 25 Jun 2024 11:09:58 +0300 Subject: [PATCH 2/2] build: Workaround build error --- global.json | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 global.json diff --git a/global.json b/global.json new file mode 100644 index 0000000..338f148 --- /dev/null +++ b/global.json @@ -0,0 +1,7 @@ +{ + "sdk": { + // Workaround CI error NETSDK1202: The workload 'net6.0-android' is out of support and will not receive security updates in the future. Please refer to https://aka.ms/maui-support-policy for more information about the support policy. [D:\a\1\s\UniversalImageLoader.csproj::TargetFramework=net6.0-android] + // We should upgrade at least the .NET SDK, but maybe the TFMs as well. + "version": "6.0.300" + } +}