#!/bin/sh set -eu INFILE=$1 DIR=$(dirname "$INFILE") STEM=$(basename "$INFILE" .svg) [ -n "$QUARTO_PROJECT_RENDER_ALL" ] || exit inkscape --export-type=pdf,png --export-width=1800 "$INFILE" ffmpeg -hide_banner -loglevel warning -y -i "$DIR/$STEM.png" -update 1 -frames:v 1 "$DIR/$STEM.jpg" rm "$DIR/$STEM.png"