Re:Ask HN: Best Self-Hosted, Server-Side Image Optimization ...
by wsxiaoys on Sunday June 25, 2017 @11:44PM
(#14633910)
And now the backend (running arbitrary unix command as http service) is open sourced at https://github.com/bashrocks/shebang
Snippets:
1. Resizing with imagemagick: https://bash.rocks/Gxlg31/3
2. Resizing and convert to webp: https://bash.rocks/7J1jgB/1
After creating the snippet, you could either use GET https://bash.rocks/0Be95B (query parameters become environment variable) or POST https://bash.rocks/jJggWJ (request body become stdin).
It's not hard to roll your backend like this for private usage (simply exec from node). I'm also working on an open source release.