How do you change the shape of one image like another?

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?".
Post Reply
PSVGameMania
Posts: 3
Joined: 2018-05-10T01:17:02-07:00
Authentication code: 1152

How do you change the shape of one image like another?

Post by PSVGameMania »

Image

Image

I want to change the image above to the image below ... What should I do?
Last edited by PSVGameMania on 2018-05-10T05:30:05-07:00, edited 10 times in total.
Bonzo
Posts: 2971
Joined: 2006-05-20T08:08:19-07:00
Location: Cambridge, England

Re: How do you change the shape of one image like another?

Post by Bonzo »

The images are not displayed here - permission error? Move somewhere else?
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: How do you change the shape of one image like another?

Post by fmw42 »

Please, always provide your IM version and platform when asking questions, since syntax may differ. Also provide your exact command line and if possible your images.

See the top-most post in this forum "IMPORTANT: Please Read This FIRST Before Posting" at http://www.imagemagick.org/discourse-se ... f=1&t=9620

For novices, see

http://www.imagemagick.org/discourse-se ... f=1&t=9620
http://www.imagemagick.org/script/comma ... essing.php
http://www.imagemagick.org/Usage/reference.html
http://www.imagemagick.org/Usage/
https://github.com/ImageMagick/usage-markdown
PSVGameMania
Posts: 3
Joined: 2018-05-10T01:17:02-07:00
Authentication code: 1152

Re: How do you change the shape of one image like another?

Post by PSVGameMania »

Sorry... I used Windows ImageMagick-7.0.7-31-Q16-x64 version.
command line convert image.png -fill white -opapue black -background none output.png.
PSVGameMania
Posts: 3
Joined: 2018-05-10T01:17:02-07:00
Authentication code: 1152

Re: How do you change the shape of one image like another?

Post by PSVGameMania »

fmw42 wrote: 2018-05-10T09:13:24-07:00 Please, always provide your IM version and platform when asking questions, since syntax may differ. Also provide your exact command line and if possible your images.

See the top-most post in this forum "IMPORTANT: Please Read This FIRST Before Posting" at http://www.imagemagick.org/discourse-se ... f=1&t=9620

For novices, see

http://www.imagemagick.org/discourse-se ... f=1&t=9620
http://www.imagemagick.org/script/comma ... essing.php
http://www.imagemagick.org/Usage/reference.html
http://www.imagemagick.org/Usage/
https://github.com/ImageMagick/usage-markdown
Sorry... I used Windows ImageMagick-7.0.7-31-Q16-x64 version.
command line convert image.png -fill white -opapue black -background none output.png.
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: How do you change the shape of one image like another?

Post by fmw42 »

try

Code: Select all

magick nine.png -fuzz 88% -transparent black result.png
Note in IM 7 magick replaces convert and you would also use magick mogrify or magick identify for the other tools.
Post Reply