Copy-opacity to cut out transparent mask -composite problems
Posted: 2010-04-27T06:22:24-07:00
Hi
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: which works BUT it is making the right hand side of the wave2.png transparent which cuts off the color-bar: http://www.weatherbadger.com/Charts/tes ... o_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
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