From f5665204861c7653be584f0d293fb981b07c0d37 Mon Sep 17 00:00:00 2001 From: Rory& Date: Fri, 30 Oct 2026 13:00:32 +0100 Subject: [PATCH] Some build fixes after dep bumps --- .gitattributes | 9 +++++---- default.nix | 2 +- .../Services/PixelArtDetectionService.cs | 6 +++--- flake.lock | Bin 2095 -> 2095 bytes nix/testVm/vm.nix | 3 +-- nix/trimNodeModules.sh | 2 +- package-lock.json | Bin 306861 -> 306779 bytes 7 files changed, 11 insertions(+), 11 deletions(-) diff --git a/.gitattributes b/.gitattributes index ba7039faa..5171b5a40 100644 --- a/.gitattributes +++ b/.gitattributes @@ -2,7 +2,8 @@ *.sh -crlf *.nix -crlf .husky/pre-commit -crlf -package-lock.json -diff -flake.lock -diff -assets/schemas.json -diff -assets/openapi.json -diff \ No newline at end of file +package-lock.json -diff linguist-generated +flake.lock -diff linguist-generated +assets/schemas.json -diff linguist-generated +assets/openapi.json -diff linguist-generated +.idea/ linguist-generated \ No newline at end of file diff --git a/default.nix b/default.nix index d4970009c..7650b9c2d 100644 --- a/default.nix +++ b/default.nix @@ -72,7 +72,7 @@ let npm prune --omit dev --no-save --offline rm -v dist/src.tsbuildinfo rm -rv scripts - time ${./nix/trimNodeModules.sh} + # time ${./nix/trimNodeModules.sh} # Copy outputs echo "Installing package into $out" diff --git a/extra/admin-api/Spacebar.Cdn/Services/PixelArtDetectionService.cs b/extra/admin-api/Spacebar.Cdn/Services/PixelArtDetectionService.cs index 204b578e3..4aefe2eaa 100644 --- a/extra/admin-api/Spacebar.Cdn/Services/PixelArtDetectionService.cs +++ b/extra/admin-api/Spacebar.Cdn/Services/PixelArtDetectionService.cs @@ -3,7 +3,7 @@ using ImageMagick; namespace Spacebar.AdminApi.TestClient.Services.Services; public class PixelArtDetectionService { - public bool IsPixelArt(IMagickImage img) where T : struct, IConvertible { + public bool IsPixelArt(IMagickImage img) where T : unmanaged { // Simple heuristic: if the image has a limited color palette and sharp edges, consider it pixel art var colorCount = img.Histogram().Count; var edgeThreshold = 20; // Arbitrary threshold for edge detection @@ -19,7 +19,7 @@ public class PixelArtDetectionService { return isPixelArt; } - public bool IsCartoonArt(IMagickImage img) where T : struct, IConvertible { + public bool IsCartoonArt(IMagickImage img) where T : unmanaged { // Simple heuristic: if the image has a limited color palette and smooth edges, consider it cartoon art var colorCount = img.Histogram().Count; var edgeThreshold = 5; // Lower threshold for smoother edges @@ -33,7 +33,7 @@ public class PixelArtDetectionService { return isCartoonArt; } - public IMagickImage RenderEdges(IMagickImage img, double radius = 1) where T : struct, IConvertible { + public IMagickImage RenderEdges(IMagickImage img, double radius = 1) where T : unmanaged { var edgeImg = img.Clone(); // edgeImg.Edge(radius); edgeImg.WaveletDenoise(new Percentage(50)); diff --git a/flake.lock b/flake.lock index 915280bfb76bba195d88090bd89119c38a24c6d3..3b6300951f78181eb1809294535fe232c516e88a 100644 GIT binary patch delta 256 zcmZ24uwGz72ZyDhrJ;$XrRl^8vU*Wz`W0z`u8xVtdF6Szu4x{H;rb>SSuU>n#U>_| zc}5v7CPAfPo>4(rjMx3*iL zVWhX4hki)7lZkIwa%r$}d6JQ sFiA|cFt#vCwJ z_wyUlexb=COv2L-q_eO#A7^Vn&c+DDOhC-M K{Wu%Tl;r?j!xUKn