Last active
April 8, 2020 17:22
-
-
Save KalanaDananjaya/e7ae8c12d38c1851bcaf7e5b46e5c9e9 to your computer and use it in GitHub Desktop.
A Fireworks WMS workflow for swirling an image
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
fws: | |
- fw_id: 0 | |
name: Transfer the input files | |
spec: | |
_tasks: | |
- _fw_name: FileTransferTask | |
dest: /tmp | |
files: [/home/kalana/A/letter.png] | |
mode: copy | |
- fw_id: 1 | |
name: 90 rotated A | |
spec: | |
_tasks: | |
- _fw_name: CommandLineTask | |
command_spec: | |
command: [convert, -swirl] | |
letter: {source: letter} | |
swirl angle: | |
source: {type: data, value: 90} | |
90 out: | |
target: {type: path, value: /tmp} | |
inputs: [swirl angle,letter] | |
outputs: [90 out] | |
letter: {type: path, value: /tmp/letter.png} | |
- fw_id: 2 | |
name: 180 rotated A | |
spec: | |
_tasks: | |
- _fw_name: CommandLineTask | |
command_spec: | |
command: [convert, -swirl] | |
letter: {source: letter} | |
swirl angle: | |
source: {type: data, value: 180} | |
180 out: | |
target: {type: path, value: /tmp} | |
inputs: [swirl angle,letter] | |
outputs: [180 out] | |
letter: {type: path, value: /tmp/letter.png} | |
- fw_id: 3 | |
name: 270 rotated A | |
spec: | |
_tasks: | |
- _fw_name: CommandLineTask | |
command_spec: | |
command: [convert, -swirl] | |
letter: {source: letter} | |
swirl angle: | |
source: {type: data, value: 270} | |
270 out: | |
target: {type: path, value: /tmp} | |
inputs: [swirl angle,letter] | |
outputs: [270 out] | |
letter: {type: path, value: /tmp/letter.png} | |
- fw_id: 4 | |
name: 360 rotated A | |
spec: | |
_tasks: | |
- _fw_name: CommandLineTask | |
command_spec: | |
command: [convert, -swirl] | |
letter: {source: letter} | |
swirl angle: | |
source: {type: data, value: 360} | |
360 out: | |
target: {type: path, value: /tmp} | |
inputs: [swirl angle,letter] | |
outputs: [360 out] | |
letter: {type: path, value: /tmp/letter.png} | |
- fw_id: 5 | |
name: Make an animation from a list of images | |
spec: | |
_tasks: | |
- _fw_name: CommandLineTask | |
command_spec: | |
animation: | |
target: {type: path, value: /tmp/animation.gif} | |
command: [convert, -delay, '10', -loop, '0'] | |
image 1: {source: 90 out} | |
image 2: {source: 180 out} | |
image 3: {source: 270 out} | |
image 4: {source: 360 out} | |
inputs: [image 4,image 1, image 2, image 3, image 4, image 3, image 2, image 1, image 4] | |
outputs: [animation] | |
metadata: {} | |
links: | |
'0' : [1,2,3,4] | |
'1' : [5] | |
'2' : [5] | |
'4' : [5] | |
'3' : [5] | |
'5' : [] | |
name: My Swirl GIF | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment