Merging two image with transparency
Posted: 2018-06-13T11:34:57-07:00
ImageMagick version: ImageMagick-7.0.6-Q16)
Operating System: Windows 7 (64 bits)
Hi, I am trying since two hours now to merge two image that contain transparency (and have the same size) together, here's what I tried so far (as individual commands):
Here's what I'm trying to do (random exemple with an Rpg Maker charset; but you get the idea):
I obviously put both images in the same folder and execute the command here but most of the time it just return the error 'bg2.png is not a valid parameters'. I used ImageMagick before to do simple image flipping via cmd and it worked just fine but now, everything I tried so far just dosen't work. Do anyone here have an idea of what is wrong/is the right commad to do)?
Operating System: Windows 7 (64 bits)
Hi, I am trying since two hours now to merge two image that contain transparency (and have the same size) together, here's what I tried so far (as individual commands):
Code: Select all
convert bg.png 2.png -gravity center -composite result.png
convert bg.png bg2.png -gravity center -composite result.png
convert bg.png null: *.png -gravity center -layers composite result%03d.png
composite -geometry +0+0 bg.png bg2.png result.png
-composite bg.png bg2.png -gravity center -composite result.png
convert bg.png bg2.png -flatten result.png
composite bg.png bg2.png result.png
convert *bg.png *bg2.png -background none -flatten out.png
I obviously put both images in the same folder and execute the command here but most of the time it just return the error 'bg2.png is not a valid parameters'. I used ImageMagick before to do simple image flipping via cmd and it worked just fine but now, everything I tried so far just dosen't work. Do anyone here have an idea of what is wrong/is the right commad to do)?