imageflow icon indicating copy to clipboard operation
imageflow copied to clipboard

imageflow_tool v1/querystring imlement print to stdout

Open bes-internal opened this issue 2 years ago • 3 comments

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

bes-internal avatar Feb 08 '23 17:02 bes-internal

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

lilith avatar Feb 08 '23 17:02 lilith

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.

bes-internal avatar Feb 08 '23 18:02 bes-internal

Okay, I'll plan to implement this.

lilith avatar Feb 08 '23 18:02 lilith