Create gradient and compose with image in one command
Posted: 2018-12-25T22:28:49-07:00
I can't figure out if it is possible to create a new image with gradient and compose it with an existing image in one command. Please help.
Command to generate the gradient:
Command to compose the gradient with an existing `input.jpg`:
Ideally, I'd like to get output.jpg in "one step", using the convert command, without having to generate and store the gradient.jpg image beforehand.
Command to generate the gradient:
Code: Select all
convert -size 1200x747 gradient: gradient.jpg
Code: Select all
convert input.jpg gradient.png -compose linear_burn -composite output.jpg