Command combination conflict, why? [SOLVED]
Posted: 2016-02-19T16:02:31-07:00
Hello,
I get all kinds of alpha issue with the layers after i combine four commands. Ran individually they output correctly but when combined I get the issue at hand.
I am using ImageMagick 6.9.1-10 Q16 x86_64 2015-07-26 in Term2 on OSX El Capitan.
Individual Commands:
Concatenated Commands:
I get all kinds of alpha issue with the layers after i combine four commands. Ran individually they output correctly but when combined I get the issue at hand.
I am using ImageMagick 6.9.1-10 Q16 x86_64 2015-07-26 in Term2 on OSX El Capitan.
Individual Commands:
Code: Select all
// Steps needed
convert \( -size 2000x2000 xc:white null: \( large.jpg -coalesce \) -gravity Center -layers Composite alphaL.png -compose copy_opacity -gravity Center -composite \) large_cut.png
convert \( -size 2000x2000 xc:white null: \( medium.jpg -coalesce \) -gravity Center -layers Composite alphaM.png -compose copy_opacity -gravity Center -resize 79.72% -composite \) medium_cut.png
convert \( -size 2000x2000 xc:white null: \( small.jpg -coalesce \) -gravity Center -layers Composite alphaS.png -compose copy_opacity -gravity Center -resize 64.12% -composite \) small_cut.png
convert -size 2000x2000 xc:white null: \( large_cut.png -coalesce \) -gravity center -layers Composite -layers Optimize null: \( medium_cut.png -coalesce \) -gravity center -layers Composite -layers Optimize null: \( small_cut.png -coalesce \) -gravity center -layers Composite -layers Optimize final.png
Code: Select all
convert \
\( -size 2000x2000 xc:white null: \( large.jpg -coalesce \) -gravity Center -layers Composite alphaL.png -compose copy_opacity -gravity Center -composite \) \
\( -size 2000x2000 xc:white null: \( medium.jpg -coalesce \) -gravity Center -layers Composite alphaM.png -compose copy_opacity -gravity Center -resize 79.72% -composite \) \
\( -size 2000x2000 xc:white null: \( small.jpg -coalesce \) -gravity Center -layers Composite alphaS.png -compose copy_opacity -gravity Center -resize 64.12% -composite \) \
-size 2000x2000 xc:white null: \( -clone 0 -coalesce \) -gravity center -layers Composite -layers Optimize null: \( -clone 1 -coalesce \) -gravity center -layers Composite -layers Optimize null: \( -clone 2 -coalesce \) -gravity center -layers Composite -layers Optimize -composite final.png