1762116201

This commit is contained in:
2025-11-02 13:43:20 -07:00
parent 7cced7f610
commit cbac96edaa
+11
View File
@@ -0,0 +1,11 @@
param(
# powershell is factually gay idkl why its such a shit
[Parameter(Mandatory=$True, Position=0)]
[string]$Filename
)
# clean up any older pallasz
rm palette.png
# first pass
ffmpeg -y -i "$Filename" -vf "palettegen=stats_mode=full" palette.png
# second pass
ffmpeg -i "$Filename" -i palette.png -lavfi "paletteuse=dither=none" -f gif -loop 0 "$Filename.gif"