Page 1 of 1

clipping a texture by a transparent png mask

Posted: 2018-11-03T03:48:24-07:00
by artech
Hi everyone,

I just want to crop a jpg file with a transparent png mask. tried different composition of commands but non of them gave me the result.

here's an example I did with gimp:

texture:
Image

mask:
Image

what i want as result
Image

Thanks in advance

Re: clipping a texture by a transparent png mask

Posted: 2018-11-03T04:36:48-07:00
by snibgo

Code: Select all

magick texture.jpg mask.png -compose CopyOpacity -composite out.png

Re: clipping a texture by a transparent png mask

Posted: 2018-11-03T07:27:44-07:00
by artech
It worked great, I was doing it in complex ways but it was that simple.

Many Thanks