From 848468d5254810e4db4c591a2ad684c3394bb3a1 Mon Sep 17 00:00:00 2001 From: jt Date: Sat, 13 Apr 2024 00:31:54 -0700 Subject: [PATCH] fix missing images on macos & linux --- CHANGELOG.md | 1 + .../Controls/Inference/ImageFolderCard.axaml | 5 ++++- StabilityMatrix.Avalonia/Views/CheckpointsPage.axaml | 5 +++-- StabilityMatrix.Avalonia/Views/OutputsPage.axaml | 8 +++++++- 4 files changed, 15 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 76a4992d..c92f1ec6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,6 +11,7 @@ and this project adheres to [Semantic Versioning 2.0](https://semver.org/spec/v2 ### Fixed - Fixed package launch not working when environment variable `SETUPTOOLS_USE_DISTUTILS` is set due to conflict with a default environment variable. User environment variables will now correctly override any default environment variables. - Fixed "No refresh token found" error when failing to login with Lykos account in some cases. +- Fixed [#574](https://github.com/LykosAI/StabilityMatrix/issues/574) - local images not showing on macOS or Linux ## v2.10.0 ### Added diff --git a/StabilityMatrix.Avalonia/Controls/Inference/ImageFolderCard.axaml b/StabilityMatrix.Avalonia/Controls/Inference/ImageFolderCard.axaml index b34b8b42..5609a5f7 100644 --- a/StabilityMatrix.Avalonia/Controls/Inference/ImageFolderCard.axaml +++ b/StabilityMatrix.Avalonia/Controls/Inference/ImageFolderCard.axaml @@ -11,6 +11,7 @@ xmlns:scroll="clr-namespace:StabilityMatrix.Avalonia.Controls.Scroll" xmlns:labs="clr-namespace:Avalonia.Labs.Controls;assembly=Avalonia.Labs.Controls" xmlns:vendorLabs="clr-namespace:StabilityMatrix.Avalonia.Controls.VendorLabs" + xmlns:converters="clr-namespace:StabilityMatrix.Avalonia.Converters" x:DataType="vmInference:ImageFolderCardViewModel"> @@ -20,6 +21,8 @@ + + @@ -200,7 +203,7 @@ + @@ -143,7 +144,7 @@ + + + + + @@ -177,7 +183,7 @@ ImageHeight="{Binding $parent[ItemsRepeater].((vm:OutputsPageViewModel)DataContext).ImageSize.Height}" ImageWidth="{Binding $parent[ItemsRepeater].((vm:OutputsPageViewModel)DataContext).ImageSize.Width}" IsSelected="{Binding IsSelected}" - Source="{Binding ImageFile.AbsolutePath}"> + Source="{Binding ImageFile.AbsolutePath, Converter={StaticResource FileUriConverter}}">