Skip to content
Merged

v2.14.0 #1224

Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
430 commits
Select commit Hold shift + click to select a range
5f8f948
Merge branch 'dev' into openid
mohnjiles Feb 2, 2025
c5466a6
fix build & add "authenticating..." text to oauth dialog
mohnjiles Feb 3, 2025
894c1ab
Merge pull request #980 from ionite34/fix-model-overwrite
mohnjiles Feb 4, 2025
f926ca9
Merge branch 'dev' into openid
mohnjiles Feb 5, 2025
2df7454
Merge branch 'dev' of https://github.com/ionite34/StabilityMatrix int…
mohnjiles Feb 6, 2025
2663e69
chagenlog
mohnjiles Feb 6, 2025
aa81cbe
more chagenlog
mohnjiles Feb 6, 2025
c4c5a7d
Merge pull request #982 from ionite34/fix-model-download-locations
mohnjiles Feb 8, 2025
339f4a9
Add blackwell torch/vision versions for comfyUI & fix unet path for l…
mohnjiles Feb 20, 2025
ef90eb2
Merge pull request #984 from ionite34/blackwell-support
mohnjiles Feb 20, 2025
e7ee526
Fix crash when symlink target doesn't exist & fix width of package names
mohnjiles Feb 21, 2025
15e5d98
add zluda forge package
mohnjiles Feb 21, 2025
a4d9bd9
fix env vars & chagenlog
mohnjiles Feb 22, 2025
b6c731e
Merge pull request #986 from ionite34/issue-fixes
mohnjiles Feb 22, 2025
db61559
Merge branch 'dev' into zluda-forge
mohnjiles Feb 22, 2025
fa94753
Merge branch 'dev' into openid
ionite34 Feb 22, 2025
bcddd33
Merge pull request #987 from ionite34/zluda-forge
mohnjiles Feb 22, 2025
a76aa24
Improved markdown styles
ionite34 Feb 22, 2025
727c299
Add resources for account notice
ionite34 Feb 22, 2025
f26c4b2
Add account migration notice dialog
ionite34 Feb 22, 2025
db433b4
Add localizations
ionite34 Feb 22, 2025
fa5a385
fix localization
ionite34 Feb 22, 2025
d4236f6
Uncomment add teaching tip
ionite34 Feb 22, 2025
1af0987
Merge branch 'dev' into openid
ionite34 Feb 22, 2025
ebfff1b
Merge pull request #979 from ionite34/openid
ionite34 Feb 22, 2025
4afcc76
shoutout chagenlog
mohnjiles Feb 25, 2025
d67097f
Merge pull request #989 from ionite34/shoutout-chagenlog
mohnjiles Feb 25, 2025
a0dab47
Update README.md
mohnjiles Feb 26, 2025
3add363
Update README.md
mohnjiles Feb 26, 2025
fc0b539
Merge pull request #990 from ionite34/mohnjiles-patch-1
mohnjiles Feb 26, 2025
4542f84
Fix PatreonOAuth disconnect using v1 api
ionite34 Feb 27, 2025
b2d2d02
Update CHANGELOG.md
ionite34 Feb 27, 2025
5cedbb5
update to avalonia 11.2.5 and some packages fixes n stuff
mohnjiles Mar 2, 2025
3dbab82
Merge pull request #992 from ionite34/fix-patreon-disconnect
ionite34 Mar 2, 2025
b0725ce
Merge branch 'dev' into fixes-n-stuf
mohnjiles Mar 2, 2025
17f068b
Merge pull request #993 from ionite34/fixes-n-stuf
mohnjiles Mar 2, 2025
b79ad00
Use cu128 nightly torch index instead of w-e-w wheels
mohnjiles Mar 2, 2025
7ab289c
Merge pull request #996 from ionite34/more-blackwell-updates
mohnjiles Mar 3, 2025
59e7bc6
Add merged e621/danbooru tags csv
mohnjiles Mar 4, 2025
88aa898
Merge pull request #1001 from ionite34/add-new-tags-source
mohnjiles Mar 4, 2025
6eaa939
Add wan img2vid tab to Inference & add some of the required models n …
mohnjiles Mar 4, 2025
8bf4fce
add wan t2v & wan stuff to hf model browser
mohnjiles Mar 5, 2025
9a113db
Fix everything being i2v and add unet option for wan civit downloads
mohnjiles Mar 5, 2025
090c1e5
Merge pull request #1002 from ionite34/wan
mohnjiles Mar 5, 2025
1469e53
Fix borked autoupdate
mohnjiles Mar 6, 2025
dbb24d0
Merge pull request #1003 from ionite34/fix-updater
mohnjiles Mar 6, 2025
b29016e
Add try catch for WebpInstance loading
ionite34 Mar 8, 2025
884bd6b
Copy WebpInstance handles to memory stream
ionite34 Mar 8, 2025
330e286
Check file exists before fetching name & size
ionite34 Mar 8, 2025
f012d70
Update CHANGELOG.md
ionite34 Mar 8, 2025
2a081c2
Fix BGR / RGB flipped Webp and Gif on macos
ionite34 Mar 9, 2025
b2227a9
Update CHANGELOG.md
ionite34 Mar 9, 2025
2e2ccde
Add missing skiasharp import
ionite34 Mar 11, 2025
18dae07
Merge pull request #1006 from ionite34/fix-webp-handles
ionite34 Mar 11, 2025
a5a28db
Fix updates not using preferred torch index
ionite34 Mar 12, 2025
7da3bcc
Update CHANGELOG.md
ionite34 Mar 12, 2025
bad364f
Fix blackwell torch installs & add new swarm flag for custom nodes & …
mohnjiles Mar 16, 2025
d347e4e
Merge pull request #1010 from ionite34/fix-n-stuff
mohnjiles Mar 16, 2025
4416617
Add TextMateSharp.Grammars to Core
ionite34 Mar 18, 2025
b012ca9
Add Enumerable Conca/Append IfNotNull
ionite34 Mar 19, 2025
2e15e30
Add GetSelectionSegment extension
ionite34 Mar 19, 2025
28eb5bb
Add Prompt Syntax AST Nodes and Builder
ionite34 Mar 19, 2025
a24a545
Add TextEditorWeightAdjustmentBehavior
ionite34 Mar 19, 2025
72565ae
wip sage install
mohnjiles Mar 19, 2025
cfffe29
sage install should work now?
mohnjiles Mar 20, 2025
860fd67
fix path finding
mohnjiles Mar 20, 2025
710e9a8
More progress details & update flags after successful install
mohnjiles Mar 20, 2025
17f5afa
only show on windows
mohnjiles Mar 20, 2025
af8e2cf
Merge pull request #1013 from ionite34/sage
mohnjiles Mar 21, 2025
dca58b5
Fix textmate token length and find parenthesis logic
ionite34 Mar 21, 2025
2c2d7a1
Add AST to prompt debug
ionite34 Mar 21, 2025
4ccf74a
Fix selection to only consider first and last token
ionite34 Mar 21, 2025
078453c
Merge pull request #1014 from ionite34/downmerg
mohnjiles Mar 21, 2025
7c47a26
Merge branch 'dev' into downmerg
mohnjiles Mar 21, 2025
53e209a
Merge pull request #1015 from ionite34/downmerg
mohnjiles Mar 21, 2025
da30809
Upgraded FluentAvalonia to latest & some other fixes for Blackwell & …
mohnjiles Mar 27, 2025
3e95be2
Merge pull request #1018 from ionite34/new-fluent-avalonia
mohnjiles Mar 27, 2025
2d8d589
Add CompletionProvider to no trace defaults
ionite34 Mar 28, 2025
0a8e0f2
Fix token selection next to separators / space / end
ionite34 Mar 28, 2025
1f2ecaf
wip tab context stuff
mohnjiles Mar 28, 2025
9460812
Better node tostring format
ionite34 Mar 28, 2025
23c067a
Add SeperatorNode parsing
ionite34 Mar 28, 2025
e0f70e9
Fix seperator parsing
ionite34 Mar 28, 2025
e03ec2f
Fix caret selection?
ionite34 Mar 28, 2025
0e16f29
Update TextEditorWeightAdjustmentBehavior.cs
ionite34 Mar 28, 2025
79305a1
fix metadata editor not using base model cache & rename some shared f…
mohnjiles Mar 30, 2025
1af50f6
Moved migration tip to main window loaded & maybe fix white boxes on …
mohnjiles Mar 30, 2025
225fe8e
chagenlog
mohnjiles Mar 30, 2025
9ba78c4
Merge pull request #1019 from ionite34/shared-folder-migrate
mohnjiles Mar 31, 2025
13a4111
Do the ROCmLibs dance & HIP SDK upgrade & show a warning for installs…
mohnjiles Apr 1, 2025
f686d94
Merge branch 'dev' into prompt-ast
ionite34 Apr 1, 2025
502a984
Merge pull request #1021 from ionite34/zluda-shenanigans
mohnjiles Apr 1, 2025
8925982
shoutout chagenlog
mohnjiles Apr 1, 2025
289a884
Merge pull request #1022 from ionite34/shoutout-chagenlog
mohnjiles Apr 1, 2025
95a6ed0
Add help guide for weight adjust
ionite34 Apr 1, 2025
b70c281
Update CHANGELOG.md
ionite34 Apr 1, 2025
c31de89
Merge branch 'dev' into prompt-ast
ionite34 Apr 1, 2025
6bde907
Merge pull request #1012 from ionite34/prompt-ast
ionite34 Apr 1, 2025
45a3dfc
Fix config model sharing with new shared folder types & added more p…
mohnjiles Apr 1, 2025
b7502da
Merge branch 'dev' into fix-config-sharing
mohnjiles Apr 1, 2025
15c7a22
Merge pull request #1023 from ionite34/fix-config-sharing
mohnjiles Apr 1, 2025
c129fe0
Add enhanced config sharing framework
ionite34 Apr 1, 2025
30f4f1c
Add default config handling for BasePackage
ionite34 Apr 1, 2025
d69a5af
Change to literal and scalar for comfy
ionite34 Apr 1, 2025
20174f2
Add root handling
ionite34 Apr 1, 2025
91f3833
Add support for SourceSubPath and Clear Root
ionite34 Apr 1, 2025
89db1db
Move FolderLayout to BasePackage
ionite34 Apr 1, 2025
ee68b6e
Remove empty cogstudio shared folder config
ionite34 Apr 1, 2025
d5d9542
Add stream overloads, unit tests
ionite34 Apr 2, 2025
e24de44
Update Fooocus with SharedFolderLayout
ionite34 Apr 2, 2025
73d9fc2
Update Sdfx with SharedFolderLayout
ionite34 Apr 2, 2025
2c15599
Refactor FluxGym for SharedFolderLayout
ionite34 Apr 2, 2025
c23dd3f
Update Vlad to SharedFolderLayout
ionite34 Apr 2, 2025
2dfa303
Update ComfyUI to SharedFolderLayout
ionite34 Apr 2, 2025
245a644
Update StableSwarm to use SharedFolderLayout
ionite34 Apr 2, 2025
13dfa48
use the right folder paths for rocmlibs & use robocopy instead of mov…
mohnjiles Apr 2, 2025
e844428
Merge pull request #1025 from ionite34/robocopy
mohnjiles Apr 2, 2025
198df08
Add GGUF support for Wan tabs in Inference
mohnjiles Apr 2, 2025
4c6f43b
Fix fsd bom saving
ionite34 Apr 2, 2025
e7faf63
Merge pull request #1026 from ionite34/gguf-wan
mohnjiles Apr 2, 2025
5879039
Add Plasma Noise addon for Inference
mohnjiles Apr 2, 2025
3b1d3ab
Fix FDS writing with empty content
ionite34 Apr 2, 2025
da00116
Merge branch 'dev' into package-share-config
ionite34 Apr 2, 2025
7eabf56
Add changelog
ionite34 Apr 2, 2025
7b063f4
Merge pull request #1024 from ionite34/package-share-config
ionite34 Apr 3, 2025
f6cf88c
Merge branch 'dev' into fix-torch-index-updates
ionite34 Apr 3, 2025
8c98c54
Merge pull request #1008 from ionite34/fix-torch-index-updates
ionite34 Apr 3, 2025
28ab699
Merge branch 'dev' into plasma
mohnjiles Apr 3, 2025
e7e5616
Merge pull request #1027 from ionite34/plasma
mohnjiles Apr 3, 2025
a41d5c5
remove unused setting that was crashing in some cases
mohnjiles Apr 4, 2025
c3ff666
Merge pull request #1028 from ionite34/fix-crash
mohnjiles Apr 4, 2025
a228996
Add override warn as error
ionite34 Apr 4, 2025
e889a46
Fix PlasmaNoise addon being required & also enable previews for Plasm…
mohnjiles Apr 5, 2025
0f717bd
Merge pull request #1029 from ionite34/fix-plasma
mohnjiles Apr 5, 2025
86806e4
Merge branch 'dev' into fix-override-stuff
ionite34 Apr 5, 2025
f8b0b00
Fix SharedFolderLayoutRule Union not copying SourceSubPath
ionite34 Apr 5, 2025
84c2dde
Fix SdNext layouts missing override property
ionite34 Apr 5, 2025
550a08a
Fix some overrides
ionite34 Apr 5, 2025
406a2e6
Merge pull request #1030 from ionite34/fix-override-stuff
ionite34 Apr 5, 2025
0352fd0
Fixed controlnet preprocessor not using the right resolution & added …
mohnjiles Apr 6, 2025
595a981
numpy also
mohnjiles Apr 6, 2025
f49a3fe
comment
mohnjiles Apr 6, 2025
c2ea725
moar comment
mohnjiles Apr 6, 2025
c2e37fd
Merge pull request #1031 from ionite34/fix-controlnet-resolution
mohnjiles Apr 6, 2025
ae525ff
Create .aiexclude
ionite34 Apr 7, 2025
a7c8e8d
more kohya mac stuff & chagenlog for last PR
mohnjiles Apr 8, 2025
2198b80
kohya mac too hacky, byeeeee
mohnjiles Apr 8, 2025
4f0252f
Fix invoke sharing error
ionite34 Apr 8, 2025
a1758cf
Merge pull request #1034 from ionite34/fix-invoke-sharing
ionite34 Apr 8, 2025
1a236ae
Merge branch 'dev' into kohya-mac
mohnjiles Apr 10, 2025
08ddead
Merge pull request #1033 from ionite34/kohya-mac
mohnjiles Apr 10, 2025
3f562fd
Update RunGit to show progress (on windows) and also use prebuilt sag…
mohnjiles Apr 10, 2025
9359fa1
also progress for these
mohnjiles Apr 10, 2025
104f982
remove unnecessary null
mohnjiles Apr 10, 2025
9928e32
Merge pull request #1035 from ionite34/show-git-progress
mohnjiles Apr 10, 2025
9be407f
Give extra python libs for triton/sage/etc with every windows venv & …
mohnjiles Apr 12, 2025
5b5b714
compile the regex
mohnjiles Apr 12, 2025
13d559d
Merge pull request #1036 from ionite34/all-the-libs
mohnjiles Apr 12, 2025
bdda370
Merge branch 'refs/heads/dev' into proxy
ionite34 Apr 12, 2025
92a1463
Fix SafetensorMetadataDialog compiled binding errors
ionite34 Apr 12, 2025
020cb4c
Fix SafetensorMetadataDialog compiled binding errors
ionite34 Apr 12, 2025
0ead4c0
add button for testing
mohnjiles Apr 12, 2025
b38fbd2
and app.axaml stuff
mohnjiles Apr 12, 2025
f074bc2
Update SkiaExtensions.cs
ionite34 Apr 12, 2025
32c211e
Extract IServiceManager, refactor usages
ionite34 Apr 12, 2025
7fecdbd
Fix missing tabcontext cant build
ionite34 Apr 12, 2025
e39e3fe
Add scoped service manager
ionite34 Apr 12, 2025
1c381b2
move to interface
ionite34 Apr 12, 2025
da6fd1b
Fix scoped resolving,
ionite34 Apr 13, 2025
69653d3
Change T2I and Model Prompt cards to scoped
ionite34 Apr 13, 2025
99a1a6a
Add Forge-Classic & add disclaimer to reForge & add undo/redo to edit…
mohnjiles Apr 13, 2025
e46b2bc
updated embeddings folder path for model sharing
mohnjiles Apr 13, 2025
06e58e6
Add button styles control theme
ionite34 Apr 14, 2025
4ffa504
Add AccountsService.RefreshLykosAsync
ionite34 Apr 14, 2025
872e42e
do the amplify
mohnjiles Apr 14, 2025
f1e2f08
Merge branch 'dev' into prompt-amplify-n-stuff
mohnjiles Apr 14, 2025
d11c1bc
forgor a notify
mohnjiles Apr 14, 2025
3f8a3b1
un-poof SaveStateToJsonObject
mohnjiles Apr 14, 2025
4b32589
Use netcache handler for image load deduplication
ionite34 Apr 15, 2025
e97168d
Use netcache handler for image load deduplication
ionite34 Apr 15, 2025
6800045
Merge pull request #1040 from ionite34/backport/dev/commit-4b32589f
ionite34 Apr 15, 2025
bddc04a
Merge branch 'dev' into backport/dev/commit-92a14638
mohnjiles Apr 15, 2025
435765c
Merge pull request #1037 from ionite34/backport/dev/commit-92a14638
ionite34 Apr 15, 2025
abc21bc
Merge branch 'dev' into forge-classic
mohnjiles Apr 15, 2025
6e1f637
Merge branch 'dev' into prompt-amplify-n-stuff
mohnjiles Apr 16, 2025
944774a
Merge pull request #1038 from ionite34/forge-classic
mohnjiles Apr 16, 2025
9609243
Show login notification and proper warnings n handle new account crea…
mohnjiles Apr 16, 2025
db617db
Merge branch 'prompt-amplify-n-stuff' of https://github.com/ionite34/…
mohnjiles Apr 16, 2025
1b24871
Merge branch 'dev' into prompt-amplify-n-stuff
mohnjiles Apr 16, 2025
6de06d7
Better debug message for image loader
ionite34 Apr 16, 2025
97ab3f6
Update CacheBase.cs
ionite34 Apr 16, 2025
74535c9
better rate limit msg
ionite34 Apr 16, 2025
d7f859d
Made TernaryExtension actually work with bind
ionite34 Apr 16, 2025
dcebb93
Add HasStoredLykosAccountAsync
ionite34 Apr 16, 2025
0d343ad
Add ILykosModelDiscoveryApi
ionite34 Apr 16, 2025
08eaa2f
Add CivitCompatApiManager
ionite34 Apr 16, 2025
1e55fa9
Add CivitUseDiscoveryApi Setting
ionite34 Apr 16, 2025
c8741c5
add prompt for login & retry amplify after successful login & lower l…
mohnjiles Apr 16, 2025
3cbe16f
Merge branch 'prompt-amplify-n-stuff' of https://github.com/ionite34/…
mohnjiles Apr 16, 2025
f9a8910
add teachingtip
mohnjiles Apr 16, 2025
e4ff2e4
Add add_resx_strings script
ionite34 Apr 16, 2025
52b612e
Add Disable Enable localize strings
ionite34 Apr 16, 2025
9d792c5
Add more info to prompt amplifier teaching tip
mohnjiles Apr 16, 2025
0934a31
Add fuzzy comments to non base
ionite34 Apr 16, 2025
93c17d7
Fix add comment logic
ionite34 Apr 16, 2025
afa13d0
Add login strings
ionite34 Apr 17, 2025
b2d04f1
Add ReadAsStringAsync method to AvaloniaResource for async resource r…
ionite34 Apr 17, 2025
eed9501
add localized strings
ionite34 Apr 17, 2025
5ae3a41
unfuzz some strings
ionite34 Apr 17, 2025
c11dd51
Add non fuzzy options
ionite34 Apr 17, 2025
450184b
Switch to ColoredConsoleTarget for enhanced log readability with ANSI…
ionite34 Apr 17, 2025
e7aaad3
Remove unused imports and disable appsettings.json reload on change.
ionite34 Apr 17, 2025
c5859af
Disable obsolete warning for migration tests
ionite34 Apr 17, 2025
b723a52
Add localized strings
ionite34 Apr 18, 2025
70e7f85
Use extra non fuzzy arg
ionite34 Apr 18, 2025
1512a37
Add ConnectedServiceManager
ionite34 Apr 18, 2025
8032015
Add Accelerated Model Discovery
ionite34 Apr 18, 2025
33705e0
Merge pull request #1039 from ionite34/prompt-amplify-n-stuff
mohnjiles Apr 18, 2025
cb68d90
Merge branch 'refs/heads/dev' into proxy
ionite34 Apr 18, 2025
810fa20
fix nullables in retry result
ionite34 Apr 18, 2025
c49834f
Add model update on version card open
ionite34 Apr 18, 2025
e76ea23
prevent no image flashing
ionite34 Apr 18, 2025
29f1b3a
Add more cache clearing for conflicting modelversions
ionite34 Apr 18, 2025
0d9867b
Update CHANGELOG.md
ionite34 Apr 18, 2025
e3aa876
Merge pull request #1041 from ionite34/proxy
ionite34 Apr 18, 2025
b2915e9
chagenlog
mohnjiles Apr 18, 2025
446be68
Merge pull request #1042 from ionite34/chagenlog
mohnjiles Apr 18, 2025
b0e2548
Replace ShowDisabledTooltipExtension with ToolTip.ShowOnDisabled in X…
ionite34 Apr 18, 2025
4f78317
Use default struct for CompileBindings & prevent binding errors
ionite34 Apr 18, 2025
69e1dde
Use default struct for CompileBindings & prevent binding errors
ionite34 Apr 18, 2025
b9f010a
Merge remote-tracking branch 'origin/fixes' into fixes
ionite34 Apr 18, 2025
4e5f61d
Skip Settings event if no property changes
ionite34 Apr 19, 2025
10c0273
Fix Extra Networks card duplicating Loras and updated RecommendedMode…
mohnjiles Apr 19, 2025
07822f0
Back to transient for most & merge GGUF model loader into Unet
mohnjiles Apr 19, 2025
09cc5ba
Merge pull request #1043 from ionite34/fix-loras-and-recommended
mohnjiles Apr 19, 2025
6ae7171
Fix some index out of range errors & format dates by culture
mohnjiles Apr 19, 2025
04c5127
Merge branch 'refs/heads/dev' into fixes
ionite34 Apr 19, 2025
cc6be19
Merge pull request #1044 from ionite34/fix-index-range-crash
mohnjiles Apr 19, 2025
6bb29fa
Fix concurrent image load errors with CacheBase
ionite34 Apr 19, 2025
e3286ef
Add option to disable filtering of extra networks & add HiDream suppo…
mohnjiles Apr 19, 2025
e9ddd4b
less brackets
mohnjiles Apr 19, 2025
9dd9fda
Merge pull request #1045 from ionite34/hidream-and-filter-toggle
mohnjiles Apr 19, 2025
fd30854
Merge branch 'refs/heads/dev' into fixes
ionite34 Apr 20, 2025
f7cba71
Merge pull request #1046 from ionite34/fixes
ionite34 Apr 20, 2025
37ee6d1
Update torch index for final/release/public/whatever cu128 branch & r…
mohnjiles Apr 23, 2025
fd010be
Merge pull request #1052 from ionite34/update-torch-index
mohnjiles Apr 23, 2025
ae2aef6
mega chagenlog
mohnjiles Apr 24, 2025
e0b428f
betterer chagenlog
mohnjiles Apr 24, 2025
f7b3b0d
Merge pull request #1053 from ionite34/mega-chagenlog
mohnjiles Apr 24, 2025
0f0387a
Merge pull request #1054 from ionite34/dev
mohnjiles Apr 24, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
30 changes: 30 additions & 0 deletions .aiexclude
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# Docs
LICENSE
CHANGELOG.md

# Legacy
StabilityMatrix/

# Tests
*.verified.*

# Misc projects
StabilityMatrix.Native/
StabilityMatrix.Native.*/
StabilityMatrix.Avalonia.Diagnostics/
StabilityMatrix.Avalonia.Diagnostics/
StabilityMatrix.UITests/

# Vendored
Avalonia.Gif/

# Configs
*.editorconfig
*.DotSettings

# Assets
*.svg
StabilityMatrix.Avalonia/Assets/Fonts/
StabilityMatrix.Avalonia/Assets/linux-x64/
StabilityMatrix.Avalonia/Assets/macos-arm64/
StabilityMatrix.Avalonia/Assets/win-x64/
2 changes: 1 addition & 1 deletion .config/dotnet-tools.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"isRoot": true,
"tools": {
"husky": {
"version": "0.6.0",
"version": "0.7.2",
"commands": [
"husky"
],
Expand Down
6 changes: 6 additions & 0 deletions .husky/task-runner.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,12 @@
"group": "generate-openapi",
"command": "dotnet",
"args": ["refitter", "--settings-file", "./StabilityMatrix.Core/Api/LykosAuthApi/.refitter"]
},
{
"name": "Run refitter for PromptGenApi",
"group": "generate-promptgen-openapi",
"command": "dotnet",
"args": ["refitter", "--settings-file", "./StabilityMatrix.Core/Api/PromptGen/.refitter"]
}
]
}
43 changes: 25 additions & 18 deletions Avalonia.Gif/GifImage.cs
Original file line number Diff line number Diff line change
Expand Up @@ -18,30 +18,28 @@ public class GifImage : Control
string
>("SourceUriRaw");

public static readonly StyledProperty<Uri> SourceUriProperty = AvaloniaProperty.Register<GifImage, Uri>(
"SourceUri"
);
public static readonly StyledProperty<Uri> SourceUriProperty = AvaloniaProperty.Register<
GifImage,
Uri
>("SourceUri");

public static readonly StyledProperty<Stream> SourceStreamProperty = AvaloniaProperty.Register<
GifImage,
Stream
>("SourceStream");

public static readonly StyledProperty<IterationCount> IterationCountProperty = AvaloniaProperty.Register<
GifImage,
IterationCount
>("IterationCount", IterationCount.Infinite);
public static readonly StyledProperty<IterationCount> IterationCountProperty =
AvaloniaProperty.Register<GifImage, IterationCount>("IterationCount", IterationCount.Infinite);

private IGifInstance? _gifInstance;

public static readonly StyledProperty<StretchDirection> StretchDirectionProperty = AvaloniaProperty.Register<
GifImage,
StretchDirection
>("StretchDirection");
public static readonly StyledProperty<StretchDirection> StretchDirectionProperty =
AvaloniaProperty.Register<GifImage, StretchDirection>("StretchDirection");

public static readonly StyledProperty<Stretch> StretchProperty = AvaloniaProperty.Register<GifImage, Stretch>(
"Stretch"
);
public static readonly StyledProperty<Stretch> StretchProperty = AvaloniaProperty.Register<
GifImage,
Stretch
>("Stretch");

private CompositionCustomVisual? _customVisual;

Expand Down Expand Up @@ -288,10 +286,19 @@ e.NewValue is null
private void UpdateGifInstance(object source)
{
_gifInstance?.Dispose();
_gifInstance = new WebpInstance(source);
// _gifInstance = new GifInstance(source);
_gifInstance.IterationCount = IterationCount;
_customVisual?.SendHandlerMessage(_gifInstance);

try
{
_gifInstance = new WebpInstance(source);
// _gifInstance = new GifInstance(source);

_gifInstance.IterationCount = IterationCount;
_customVisual?.SendHandlerMessage(_gifInstance);
}
catch (Exception e)
{
Logger.Sink?.Log(LogEventLevel.Warning, "GifImage Update Source ", this, e.ToString());
}
}
}
}
21 changes: 15 additions & 6 deletions Avalonia.Gif/GifInstance.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
using Avalonia.Gif.Decoding;
using Avalonia.Media.Imaging;
using Avalonia.Platform;
using SkiaSharp;

namespace Avalonia.Gif
{
Expand Down Expand Up @@ -60,12 +61,20 @@ public GifInstance(Stream currentStream)
_gifDecoder.Header.Dimensions.Height
);

_targetBitmap = new WriteableBitmap(
pixSize,
new Vector(96, 96),
PixelFormat.Bgra8888,
AlphaFormat.Opaque
);
// Different on os: https://github.com/mono/SkiaSharp/issues/1492#issuecomment-689015409
// ReSharper disable once SwitchExpressionHandlesSomeKnownEnumValuesWithExceptionInDefault
var format = SKImageInfo.PlatformColorType switch
{
SKColorType.Bgra8888 => PixelFormat.Bgra8888,
SKColorType.Rgba8888 => PixelFormat.Rgba8888,
_
=> throw new NotSupportedException(
$"Unsupported color type: {SKImageInfo.PlatformColorType}"
)
};

_targetBitmap = new WriteableBitmap(pixSize, new Vector(96, 96), format, AlphaFormat.Opaque);

GifPixelSize = pixSize;

_totalTime = TimeSpan.Zero;
Expand Down
28 changes: 21 additions & 7 deletions Avalonia.Gif/WebpInstance.cs
Original file line number Diff line number Diff line change
Expand Up @@ -54,12 +54,17 @@ public WebpInstance(Stream currentStream)

var pixSize = new PixelSize(_codec.Info.Width, _codec.Info.Height);

_targetBitmap = new WriteableBitmap(
pixSize,
new Vector(96, 96),
PixelFormat.Bgra8888,
AlphaFormat.Opaque
);
// Different on os: https://github.com/mono/SkiaSharp/issues/1492#issuecomment-689015409
// ReSharper disable once SwitchExpressionHandlesSomeKnownEnumValuesWithExceptionInDefault
var format = SKImageInfo.PlatformColorType switch
{
SKColorType.Bgra8888 => PixelFormat.Bgra8888,
SKColorType.Rgba8888 => PixelFormat.Rgba8888,
_ => throw new NotSupportedException($"Unsupported color type: {SKImageInfo.PlatformColorType}")
};

_targetBitmap = new WriteableBitmap(pixSize, new Vector(96, 96), format, AlphaFormat.Opaque);

GifPixelSize = pixSize;

_totalTime = TimeSpan.Zero;
Expand Down Expand Up @@ -121,9 +126,18 @@ private static Stream GetStreamFromUri(Uri uri)

if (!uriString.StartsWith("resm") && !uriString.StartsWith("avares"))
{
return new FileStream(uriString, FileMode.Open, FileAccess.Read);
// Local file
using var fs = new FileStream(uriString, FileMode.Open, FileAccess.Read);

// Copy to memory stream then return
var memoryStream = new MemoryStream();
fs.CopyTo(memoryStream);
memoryStream.Seek(0, SeekOrigin.Begin);

return memoryStream;
}

// Internal Avalonia resources
return AssetLoader.Open(uri);
}

Expand Down
Loading
Loading