I'm trying to cut out a transparent mask-hole in my wave charts so an underlying land-map will show through in a web-browser.
I'm starting with http://www.weatherbadger.com/Charts/test/wave2.png
and have a landmask http://www.weatherbadger.com/Charts/tes ... transp.png - if you open this with GIMP you can see the land is transparent.
These two images are the same height but the wave2.png is slightly wider - with a colorbar on the right hand side.
I've got as far as:
Code: Select all
convert wave2.png wave_transp.png -compose copy-opacity -composite wave-no_cbar.png
It would appear that my -composite is making everything outside the mask image tranparent also.
I've tried -gravity west but think I'm probably not using -composite right. I can change the landmask to a black rather than transparent image if that helps
Thanks for any suggestions.
WB