/bin/magick
The builtin magick of mkfifo.com: a part of the command magick of ImageMagick 7, with the same words. It changes the size, the orientation and the format of an image. The builtins of an envelope are the same.
Use it from the web
Its address is https://mkfifo.com//bin/magick, with two slashes.
Send a POST: the body is the input, and the query gives the words, between
&
and with percent-encoding. The answer is the output, as the command of a shell writes it.
An error gives 422 and the error.
curl -s 'https://mkfifo.com/images/width=8/favicon.svg' | curl --data-binary @- 'https://mkfifo.com//bin/magick?-&-resize&4x&-quality&100&webp%3A-'
The answer (200):
(234 bytes, not text) 52 49 46 46 e2 00 00 00 57 45 42 50 56 50 38 4c d6 00 00 00 2f 03 c0 00 10 cd 55 20 22 02 1e 08 20 01 00 00 00 00 cc 0c c3 83 39 00 00 00 00 00 00 00 00 00 00 00 00 30 00 00 00 00 00 00 00 00 00 00 60 86 07 00 03 00 00 00 80 07 02 41 00 00 00 00 70 fe 3f 36 e0 0d 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 c0 0c 0c da 03 01 24 00 00 00 00 38 7f fe c1 18 06 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 66 60 00 7b b2 07 02 48 00 00 00 00 70 fe 01 00 30 00 00 00 00 00 00 00 00 00 00 00 b4 01 03 00 46 03 00 00 00 00 00 00 00 00 00 00 00 0c 80 95 55 d9 6e 08 3a c3 a3 07 41 41 8f b2 9e 3c 41 93 b7 42 88 6c 67 d7 cf f3 34 b2 eb ab 8b 11
Use it in an envelope
A pipe gives a value to it, as to a FIFO: $body | /bin/magick.
An egress envelope can send to it, To: /bin/magick,
and Reply-To
gives its answer to a FIFO. These give no words: use the builtin itself for words, as in $body | jq .id.
A builtin here has no FIFO as its home: no code of totp
and no sealed key of a FIFO opens in it. Each run counts in the limits of its Request.