all repos — shwarp-tools @ 64aed25fe34e80cd38205467432f5caeae0552c7

Tools and scripts

tool(render-timelapse): fix gif getting cut off

I think. Anyway, it's simpler, and we always have the history to fall
back on if it doesn't work it every case.

While here some self-evident QoL tweaks.
shwarp
Sun, 11 Oct 2026 14:42:01 -0400
commit

64aed25fe34e80cd38205467432f5caeae0552c7

parent

23226ab5ee1223f2d962c90de1157c0d66573cb0

1 files changed, 4 insertions(+), 6 deletions(-)

jump to
M tools/render-timelapse → tools/render-timelapse

@@ -50,26 +50,24 @@ echo "done ($count)"

echo -n "Converting map versions to SVGs " count=$((0)) +shopt -s nocaseglob for file in $OUTPUT_DIR/.*.WAD do echo -n . - # TODO Branch on optional param (wad2svg|wadimage|etc) - #wad2svg $file MAP01 --image_height 640 --image_width 480 > "${file}.svg" 2>/dev/null - - wad2image $file -c yadex -n 1 -i "$WAD_DIR" -o "$OUTPUT_DIR" --thing-scale 2 -t 3 + wad2image $file -c yadex -i "$WAD_DIR" -o "$OUTPUT_DIR" --thing-scale 2 --scale 0.1 --thickness 2 --width 640 --height 480 mv "$OUTPUT_DIR/map01.png" -- "${file}.png" ((count++)) done echo "done ($count)" -echo -n "Combining SVGs into animated GIF ... " +echo -n "Combining images into animated GIF ... " OUTPUT_ARTEFACT_PATH="${OUTPUT_DIR}/${MAP_FILENAME}.gif" shopt -s extglob nullglob -magick "$OUTPUT_DIR"/.*.@(svg|png) -gravity center -crop 1:1 +repage -resize 800x800 -loop 1 -delay 10 "$OUTPUT_ARTEFACT_PATH" +magick "$OUTPUT_DIR"/.*.@(svg|png) +repage -delay 10 "$OUTPUT_ARTEFACT_PATH" echo \ done echo -e "Output: '${OUTPUT_ARTEFACT_PATH}'"