Page 1 of 1

Cannot compose and set extent

Posted: 2019-06-07T08:07:55-07:00
by bwroga
I am able to compose two images with this command

Code: Select all

magick original/20190604_153319_0001.TIF corrected/temp/streaks/20190604_153319_0001.png -compose plus -composite x.png
but when I try to set the extent, the output image is completely white

Code: Select all

magick original/20190604_153319_0001.TIF corrected/temp/streaks/20190604_153319_0001.png -compose plus -composite -extent 2550x3300 x.png
In this example 2550x3300 are the original dimensions of both images being composited.

Why does this happen? Is there a way to compose and set the extent in one command?

Re: Cannot compose and set extent

Posted: 2019-06-07T08:11:21-07:00
by bwroga
I forgot to mention, I want to set the extent on the image after the two have been composited, not on just the background or overlay.

Re: Cannot compose and set extent

Posted: 2019-06-07T09:17:40-07:00
by fmw42
after -composite add -compose over to reset the compose method. -extend uses the current compose, which you have as plus.


magick original/20190604_153319_0001.TIF corrected/temp/streaks/20190604_153319_0001.png -compose plus -composite -compose over -extent 2550x3300 x.png

Re: Cannot compose and set extent

Posted: 2019-06-07T12:24:26-07:00
by bwroga
fmw42 wrote: 2019-06-07T09:17:40-07:00 after -composite add -compose over to reset the compose method. -extend uses the current compose, which you have as plus.
Thank you!