Check-in [fd98f78747]
Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Comment: | updated description without utf-8 symbols |
---|---|
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA1: |
fd98f78747b13c405c76bd02afe1f3b5 |
User & Date: | mario 2025-06-16 00:28:24 |
2025-06-28
| ||
15:20 | update notes Leaf check-in: 1395bcb11f user: mario tags: trunk | |
2025-06-16
| ||
00:28 | updated description without utf-8 symbols check-in: fd98f78747 user: mario tags: trunk | |
00:27 | fix generator for inx check-in: 4c1a26da5e user: mario tags: trunk | |
Changes to inkscape/export_gif.py.
|
| | | 1 2 3 4 5 6 7 8 | #!/usr/bin/env python3 # encoding: utf-8 # api: inkscape ##type: effect # category: export # title: GIF slideshow # description: Export and combine layers as animation via ImageMagick/Pillow # id: org.include-once.inkscape.export-gif |
26 27 28 29 30 31 32 | # { category: ImageMagick, name: extra2, type: str, value: "", description: "Custom args", help: "Specify additional convert(1) options." } # { category: ImageMagick, name: background, type: color, appearance: colorbutton, value: "0", description: "Background color for transparent layers", help: "Only works for SVG→ImageMagick option." } # { category: System, name: preview, type: bool, value: 0, description: "Preview result file", help: "Should bring up default image viewer on resulting GIF (via xdg-open, or start… on Windows)" } # { category: System, name: keep_tmp, type: bool, value: 0, description: "Keep temporary files", help: "Will retain the frame PNGs in the fixed directory /tmp/inkscape.export_gif/" } # { category: System, name: reload_svg, type: bool, value: 0, description: "Reload SVG in Inkscape", help: "Averts the warning popup of lacking result data. But is quite redundant for this tool. And should only be enabled if it's becoming too obnoxious." } # { category: System, name: export_background, type: bool, value: 0, description: "Force background application in PNG export", help: "Uses --export-background for generating PNG slides prior assembly. (See ImageMagick for color tab.)" } # { category: System, name: default_merge, type: bool, value: 0, description: "Default all layers to [merge] - not implemented yet", help: "Requires to annotate actual slides with [background] or [export], because it defaults everything else to down-grouping [merge]" } | | | | | | | | 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 | # { category: ImageMagick, name: extra2, type: str, value: "", description: "Custom args", help: "Specify additional convert(1) options." } # { category: ImageMagick, name: background, type: color, appearance: colorbutton, value: "0", description: "Background color for transparent layers", help: "Only works for SVG→ImageMagick option." } # { category: System, name: preview, type: bool, value: 0, description: "Preview result file", help: "Should bring up default image viewer on resulting GIF (via xdg-open, or start… on Windows)" } # { category: System, name: keep_tmp, type: bool, value: 0, description: "Keep temporary files", help: "Will retain the frame PNGs in the fixed directory /tmp/inkscape.export_gif/" } # { category: System, name: reload_svg, type: bool, value: 0, description: "Reload SVG in Inkscape", help: "Averts the warning popup of lacking result data. But is quite redundant for this tool. And should only be enabled if it's becoming too obnoxious." } # { category: System, name: export_background, type: bool, value: 0, description: "Force background application in PNG export", help: "Uses --export-background for generating PNG slides prior assembly. (See ImageMagick for color tab.)" } # { category: System, name: default_merge, type: bool, value: 0, description: "Default all layers to [merge] - not implemented yet", help: "Requires to annotate actual slides with [background] or [export], because it defaults everything else to down-grouping [merge]" } # { category: Animation, name: subframes, type: int, value: 5, description: "Subframes per (animation) slide", help: "Can be overridden per [animate=25] or [steps=25] in layer label." } # { category: Animation, name: a_rotate, type: bool, value: 1, description: "Use simpler rotate() handler", help: "Actually works better than tweening, and allows for >90° rotations without collapsing the matrix. OTOH the inkex method might handle positioning better." } # { category: Animation, name: all_anim, type: bool, value: 0, description: "Engage whenever SVG animate instructions are present", help: "Makes [animate] tags redundant, at the expense of longer processing times; and repeat runs for background layers." } # { category: Animation, name: all_pace, type: bool, value: 0, description: "Honor timing information for all slides", help: "Honor begin=, dur=, and some calcMode= settings, for pacing or delayed timing. Otherwise individual layers can be marked with [pace] or [smooth] in addition to [animate]. Else animations run/stretch across the alloted delay time for a slide." } # { category: Help, label: "Layer labels (Ctrl+Shift+L, double click) can specify additional options:" } # { category: Help, label: " - [fixed] for very permanent foreground layer" } # { category: Help, label: " - [background] for sticky background images" } # { category: Help, label: " - [merge] enjoins partial layers; and [exclude] skips them" } # { category: Help, label: " - [animate=10] generates (animate*) subframes, flag: [pace] timing" } # { category: Help, label: " - [--delay=2.5] resets ImageMagick option (delay also for Pillow)", # { category: Help, label: $help, appearance: url } # inx-export: .gif, image/gif, GIF slideshow (*.gif), Graphics Interchange Format 98a # architecture: all # pack: export_gif.py, *.inx, pmd2inks, animate_yo.py, svgelements.py, export_gif.svg, LICENSE=/usr/share/doc/inkscape-export-gif/copyright # permissive: 0.5 # format: off # author: mario#include-once:org |