imazen / imageflow

High-performance image manipulation for web servers. Includes imageflow_server, imageflow_tool, and libimageflow
https://docs.imageflow.io/
GNU Affero General Public License v3.0
4.14k stars 140 forks source link

imageflow_tool v1/querystring imlement print to stdout #622

Open bes-internal opened 1 year ago

bes-internal commented 1 year ago

Please implement image result output to stdout as imageflow_tool v1/querystring --out -

lilith commented 1 year ago

Could you share more about the usage context? Would you want to discard the JSON response?

bes-internal commented 1 year ago

All commands in the console must be able to compose a pipeline. For example, for quick testing, you can use such a line or third-party tools without saving the file to disk:

$ magick convert -quality 88 -resize 300x\> orig.jpg jpeg:-  |identify -
-=>/tmp/magick-UfYyZkLBjE88ypgjwY-e9VJuxFTeS19r JPEG 300x421 300x421+0+0 8-bit sRGB 58503B 0.000u 0:00.000

(write to std and read from std)

If --out - is specified then JSON is suppressed and --response should be used.

lilith commented 1 year ago

Okay, I'll plan to implement this.