So far I'm testing with:
Code: Select all
magick in.png -trim out.png
Code: Select all
magick in.png -trim -format "Hello World" info:- out.png
How can I get both some text as output and an image saved in the same command? What variables would I then need to get the amount which was trimmed?
Version: 7.0.8-3 Q16
Right now I'm testing on Windows in a CMD window, but in the end, I'll be using subprocess.check_output in Python to get the info I need.