Preparing a SVG animated slide from a multi-page PDF with \animategraphics (animate package) in LaTeX Beamer I find issues with the rasterized effects embedded in the PDF, resulting in artifacts in the resulting SVG.
An example, test.tex:
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Force graphicx/color driver `dvips.def'
\RequirePackage[dvips]{xcolor}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\documentclass[dvisvgm,aspectratio=169]{beamer}
\setbeamertemplate{navigation symbols}{}
\usepackage{animate}
%\usepackage{graphicx}
%\usepackage{tikz}
\graphicspath{{./}}
\title{Test}
\subtitle{TL;DR}
\begin{document}
\begin{frame}{}
\animategraphics[controls,loop,autoplay,width=.8\linewidth]{1}{all_pages}{}{}
\end{frame}
\end{document}
The multi-page PDF was created with pdftk from multiple PDFs created with Inkscape. An example can be found here: http://gac.udc.es/~emilioj/all_pages.pdf
From the LaTeX file a xdv file is obtained by:
xelatex --no-pdf test.tex
xelatex --no-pdf test.tex
and the final SVG is generated with:
dvisvgm --zoom=-1 --font-format=woff2 --page=- --bbox=papersize test.xdv
An example of the obtained SVG: http://gac.udc.es/~emilioj/test.svg (http://gac.udc.es/~emilioj/test.log)
I am using TeX Live 2020.20210202 and dvisvgm 2.11.1 in a Debian Sid system and I tried the animate package included in my TeX Live (2020/10/07) as well the last release from git (2021/06/11).
\makeatletter \declare@file@substitution{xetex.def}{dvisvgm.def} \makeatother, this will force xetex to load the dvisvgm.def instead (but I don't know if the driver is better for your use case). – Ulrike Fischer Jul 19 '21 at 12:55