question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

FFTransformation: can't seem to get it to work correctly

See original GitHub issue

Hey,

I am using your component to render a image and I want to combine this with the blur transformation that you are providing.

I have downloaded and installed the Nuget package and it seems to find the package itself. But somehow the image won’t show up and a white page is shown.

I am using the sample code that you have provided in this Git. When I for example remove the transformation part the image is shown.

The code example below results in image being shown in the middle:

<?xml version="1.0" encoding="utf-8" ?>
<ContentPage xmlns="http://xamarin.com/schemas/2014/forms"
             xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
             xmlns:forms="clr-namespace:FFImageLoading.Forms;assembly=FFImageLoading.Forms"
             xmlns:controls="clr-namespace:BNApp.Controls;assembly=BNApp"
             xmlns:transformations="clr-namespace:FFImageLoading.Transformations;assembly=FFImageLoading.Transformations"
             x:Class="BNApp.Tests.test">
    <ContentPage.Content>
        <ScrollView>
            <StackLayout>

                <forms:CachedImage HorizontalOptions="Center" VerticalOptions="Center"
				     DownsampleToViewSize="true"
					Aspect="AspectFit" HeightRequest="400" WidthRequest="400" Source="BNAppLoginBackground.jpg">
                 
                </forms:CachedImage>

                <Label Text="BlurredTransformation" HorizontalTextAlignment="Center"/>

                <Button Text="Load another image" Command="{Binding LoadAnotherCommand}"/>

            </StackLayout>
        </ScrollView>
    </ContentPage.Content>
    </ContentPage>

And this code shows nothing when used:

<?xml version="1.0" encoding="utf-8" ?>
<ContentPage xmlns="http://xamarin.com/schemas/2014/forms"
             xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
             xmlns:forms="clr-namespace:FFImageLoading.Forms;assembly=FFImageLoading.Forms"
             xmlns:controls="clr-namespace:BNApp.Controls;assembly=BNApp"
             xmlns:transformations="clr-namespace:FFImageLoading.Transformations;assembly=FFImageLoading.Transformations"
             x:Class="BNApp.Tests.test">
    <ContentPage.Content>
        <ScrollView>
            <StackLayout>

                <forms:CachedImage HorizontalOptions="Center" VerticalOptions="Center"
				     DownsampleToViewSize="true"
					Aspect="AspectFit" HeightRequest="400" WidthRequest="400" Source="BNAppLoginBackground.jpg">
                    <forms:CachedImage.Transformations>
                        <transformations:BlurredTransformation Radius="40"/>
                    </forms:CachedImage.Transformations>
                </forms:CachedImage>

                <Label Text="BlurredTransformation" HorizontalTextAlignment="Center"/>

                <Button Text="Load another image" Command="{Binding LoadAnotherCommand}"/>

            </StackLayout>
        </ScrollView>
    </ContentPage.Content>
    </ContentPage>

I have uploaded screenshots to for the following example and I do hope someone could help me out to fix this problem. http://imgur.com/a/l7qng

Also I am using Xamarin.Forms.

Thanks in advance and have a great weekend!

Luuk

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:9 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
daniel-luberdacommented, Jan 24, 2017

@LukasThijs I made some additional fixes. New nuget should be released today. Could you try it? If it still won’t work for you, you could use a legacy mode. Just set (in Android project): BlurredTrasnformation.LegacyMode = true which will force legacy blur algorithm.

0reactions
daniel-luberdacommented, Jan 26, 2017

Thanks for info! 👍

Read more comments on GitHub >

github_iconTop Results From Across the Web

Fitness Fulfillment, LLC- Andrea Dekerlegand's post
“Never just settle when things seem to never change. There is always a way out. With patience and small changes so much progress...
Read more >
Josie is this month's FF member of the month!
I have been working with FF for a little over 2 years. It's amazing how fast time flies!! At the time I had...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found