Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

android app is continue to load the same image. #21

Open
BoungSeokKim opened this issue Mar 26, 2024 · 5 comments
Open

android app is continue to load the same image. #21

BoungSeokKim opened this issue Mar 26, 2024 · 5 comments

Comments

@BoungSeokKim
Copy link

BoungSeokKim commented Mar 26, 2024

Description

android app is continue to load the same image.

Steps to Reproduce

baisc xaml using.

<CollectionView ItemsSource="{Binding Filtered}"
				ItemsUpdatingScrollMode="KeepScrollOffset"
				MinimumWidthRequest="200"
				VerticalOptions="FillAndExpand">
	<CollectionView.ItemsLayout >
		<GridItemsLayout Orientation="Vertical" Span="2" VerticalItemSpacing="5" HorizontalItemSpacing="5" />
	</CollectionView.ItemsLayout>
	<CollectionView.ItemTemplate>
		<DataTemplate >
			<Border 	HeightRequest="200" 
					BackgroundColor="{Binding BackGroundColor}">
				<Grid RowDefinitions="140,*">
					<ffimageloading:CachedImage Source="{Binding Image}" Aspect="AspectFit" Margin="3,3,3,0">
						<ffimageloading:CachedImage.Transformations>
							<fftransformations:RoundedTransformation Radius="20"/>
						</ffimageloading:CachedImage.Transformations>
					</ffimageloading:CachedImage>

					<VerticalStackLayout Grid.Row="1" Margin="10" Spacing="5" InputTransparent="True">
						<Label HorizontalOptions="Center"
							   VerticalOptions="End"
							   Text="{Binding Price, StringFormat='{0:C}'}"
							   TextColor="{Binding TitleColor}"
							   MaxLines="1"/>
					</VerticalStackLayout>
				</Grid>
			</Border>
		</DataTemplate>
	</CollectionView.ItemTemplate>
</CollectionView>

Expected Behavior

Actual Behavior

Basic Information

  • Version with issue: 1.1.0 and 1.0.9
  • Last known good version:
  • Platform: android samsung note5 and M10 pad
  • MAUI version: 8.0.7
  • .net version: 8.0.203
  • visual stduio version : 17.9.2

Screenshots

screen

Reproduction Link / Code

log file add.
logdump.zip

@microspaze
Copy link
Owner

microspaze commented Mar 26, 2024

03-26 20:05:54.258 27898 27898 I DOTNET  : Image loaded from cache: http://techdev.akamaized.net/PhotoZone/Images/hun3sin578farrs5majun.jpg;RoundedTransformation,radius=20,cropWidthRatio=1,cropHeightRatio=1,borderSize=0,borderHexColor=
03-26 20:05:54.261 27898 27898 I DOTNET  : Image loaded from cache: http://techdev.akamaized.net/PhotoZone/Images/hnuus6t4s9hps207rhn1w.jpg;RoundedTransformation,radius=20,cropWidthRatio=1,cropHeightRatio=1,borderSize=0,borderHexColor=
03-26 20:05:54.266 27898 27898 I DOTNET  : Image loaded from cache: http://techdev.akamaized.net/PhotoZone/Images/hnuus6t4s9hps207rhn1w.jpg;RoundedTransformation,radius=20,cropWidthRatio=1,cropHeightRatio=1,borderSize=0,borderHexColor=

From the log you provided, the same images are all loaded from cache not from web. The urls are just cache keys. You can set a Fiddler proxy to check if the images are loading repeatly from web.

BTW, the latest version 1.1.1 fixed a DiskCache related bug. You'd better to upgrade to the latest version package for verifying.

@BoungSeokKim
Copy link
Author

In version 1.1.1, we continue to load the image in the cache.
Attach the log file. log.zip

@microspaze
Copy link
Owner

microspaze commented Mar 27, 2024

I have reproduced this issue on my environment. Let me have a deeper look.

@microspaze
Copy link
Owner

Fix in latest version 1.1.2 : https://nuget.org/packages/FFImageLoading.Maui/1.1.2

@BoungSeokKim
Copy link
Author

ok! thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants