| 664 | return suffix in {'.apng', '.avif', '.gif', '.webm', '.webp'} |
| 665 | |
| 666 | def _args(self): |
| 667 | # ImageMagick does not recognize "raw". |
| 668 | fmt = "rgba" if self.frame_format == "raw" else self.frame_format |
| 669 | extra_args = (self.extra_args if self.extra_args is not None |
| 670 | else mpl.rcParams[self._args_key]) |
| 671 | return [ |
| 672 | self.bin_path(), |
| 673 | "-size", "%ix%i" % self.frame_size, |
| 674 | "-depth", "8", |
| 675 | "-delay", str(100 / self.fps), |
| 676 | "-loop", "0", |
| 677 | f"{fmt}:{self.input_names}", |
| 678 | *extra_args, |
| 679 | self.outfile, |
| 680 | ] |
| 681 | |
| 682 | @classmethod |
| 683 | def bin_path(cls): |