Collection of mostly command line tools / PHP scripts. Somewhat out of date.

⌈⌋ ⎇ branch:  scripts + snippets


Artifact [081bb0ab90]

Artifact 081bb0ab90ecb0530d6e4c5f579033079b4195fc:

  • File inkscape/saveas_gif.inx — part of check-in [1c478fe45d] at 2022-09-29 10:22:17 on branch animgif — transition save_as mode into hidden option, suppress redundant pylint "tips" (user: mario size: 1909) [more...]

<?xml version="1.0" encoding="UTF-8"?>
<inkscape-extension xmlns="http://www.inkscape.org/namespace/inkscape/extension">
    <name>GIF slideshow</name>
    <description>Export layers as animation using ImageMagick</description>
    <category>Export</category>
    <id>org.include-once.inkscape.saveas-gif</id>
  <param name="mode" type="optiongroup" appearance="combo" gui-text="Conversion mode">
    <option value="PNG→ImageMagick (better quality)">PNG→ImageMagick (better quality)</option>
    <option value="SVG→ImageMagick (simple drawings)">SVG→ImageMagick (simple drawings)</option>
    <option value="PNG→Pillow (builtin code)">PNG→Pillow (builtin code)</option>
  </param>
  <param name="delay" type="float" min="0.01" max="20" precision="2" appearance="float" gui-text="Delay between slides (seconds)">0.35</param>
  <param name="loop" type="int" min="0" max="100" precision="1" appearance="int" gui-text="Loop limit (0 for endless)">0</param>
  <param name="layers" type="optiongroup" appearance="combo" gui-text="Accumulation/combination of -layers">
    <option value="optimize">optimize</option>
    <option value="coalesce">coalesce</option>
    <option value="composite">composite</option>
    <option value="dispose">dispose</option>
    <option value="optimize-frame">optimize-frame</option>
    <option value="optimize-transparency">optimize-transparency</option>
  </param>
  <param name="save_as" type="bool" appearance="hidden" gui-hidden="true">true</param>
     <output>
        <extension>.gif</extension>
        <mimetype>image/gif</mimetype>
        <filetypename>GIF slideshow (*.gif)</filetypename>
        <filetypetooltip>Graphics Interchange Format 98a</filetypetooltip>
        <dataloss>true</dataloss>
    </output>
    <script savecopyonly="true">
        <command location="inx" interpreter="python">export_gif.py</command>
    </script>
</inkscape-extension>