Closed bprochniak closed 6 years ago
@bprochniak Many people have problems with this. Is it possible to have a reproduction project? I currently don't know why is it happening. Does anyone knows what's the cause?
This may be related to: https://github.com/luberda-molinet/FFImageLoading/issues/762
@daniel-luberda Hello Daniel, I think this issue is related to #508 and that the cause is a regression in the ImageExtension.cs file. The commit 80764a1 (28 August 2017, title "Some refactorings") re-introduced the problem that was fixed by #508.
I have not gone deep into this but I guess this issue occurs because a platform specific transformation dll is not included. The point is, how can I do it?
With FFImageLoading.Forms it is easy. We have the pcl dll FFImageLoading.Forms.dll and the uwp dll FFImageLoading.Forms.WinUWP.dll. The first one I include by typeof(CachedImage).GetTypeInfo().Assembly and secend one by typeof(CachedImageRenderer).GetTypeInfo().Assembly. But there is no FFImageLoading.Transformations.WinUWP.dll file. There is only FFImageLoading.Transformations.dll file and the platform specific dll has the same name and the same namespace in it. So by typeof(FFImageLoading.Transformations.RotateTransformation).GetTypeInfo().Assembly I include only the pcl library and I guess in addition I need to do something like this:
typeof(RotateTransformationRenderer).GetTypeInfo().Assembly or typeof(FFImageLoading.Transformations.WinUWP.RotateTransformation).GetTypeInfo().Assembly
but I can't find this type / namespace.
The commit 80764a1 (28 August 2017, title "Some refactorings") re-introduced the problem that was fixed by #508.
@Aquastorm Nice catch! I applied a better fix now (IMainThreadDispatcher was faulty when using async methods with it) as it was the main issue.
About Transformations. I think the problem is with Transformation package nuspec file, but I don't know what exactly.
Please check newest 2.2.21 prerelease nuget.
It is working fine with 2.2.21-pre576. Thanks.
Also confirm that everything works fine, just in time for the release XD. Big thanks
@daniel-luberda Thanks Daniel :) I can also confirm that everything works like a charm with the 2.2.2.1-pre-576 release. We are so happy that we can make a new release for Windows. Thank you Daniel for the fix!
No image is dispaly in UWP in Release mode:
when I remove this line:
Transformations="{ Binding GalleryManager.Preview.Rotation, Converter={x:Static local:RotateToTransformationConverter.Instance}}"
it is working fine. It is working fine also in Debug mode with this line. I my App.xaml.cs I have:
What else I need to do to make it work? Version 2.2.20