Page 1 of 1

Re: newbe transparent layer question

Posted: 2007-05-31T07:24:32-07:00
by Bonzo
Remember jpg does not use transparency so if any area is to stay transparent you will need to save it as a png or gif.

Code: Select all

composite -gravity center transparent.gif photo.jpg result.jpg

Re: newbe transparent layer question

Posted: 2007-06-04T20:14:19-07:00
by anthony
Also as JPG has no transparency, placing things UNDER a JPG image will never be seen. Now if the GIF with a transparent window is OVER a JPG then the JPEG will be visible through the window.

Again as JPG is involved, unless the Alpah composition operator adds transparency (a masking operation) then the result will not have any transparency.

Of course to add transparency to a JPEG you need to tell Im to give it a alpha or matte channel using -matte