Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
artech
Posts: 10 Joined: 2018-10-08T09:10:04-07:00
Authentication code: 1152
Post
by artech » 2018-11-03T03:48:24-07:00
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:
mask:
what i want as result
Thanks in advance
snibgo
Posts: 12159 Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK
Post
by snibgo » 2018-11-03T04:36:48-07:00
Code: Select all
magick texture.jpg mask.png -compose CopyOpacity -composite out.png
artech
Posts: 10 Joined: 2018-10-08T09:10:04-07:00
Authentication code: 1152
Post
by artech » 2018-11-03T07:27:44-07:00
It worked great, I was doing it in complex ways but it was that simple.
Many Thanks