Mobile app version of vmapp.org
Login or Join
Bryan765

: How to convert a specified colour to transparent for a series of PNGs with ImageMagick? I've installed ImageMagick on Windows 7 64-bit and I'm wondering how I can convert a series of PNGs to

@Bryan765

Posted in: #BatchProcessing #HowTo #Imagemagick #Png #Transparency

I've installed ImageMagick on Windows 7 64-bit and I'm wondering how I can convert a series of PNGs to transparent PNGs in a timely manner (I have 180 PNGs to convert, so yeah I can't exactly do them each individually if I ever want to have spare time again).

How can I quickly edit the transparency of a colour for a batch of PNGs using ImageMagick?

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @Bryan765

1 Comments

Sorted by latest first Latest Oldest Best

 

@Sent7350415

If the color of the original background is fixed (e.g. white), you can simply use convert for all your images (see also here):

convert input_image.png -transparent white output_image.png


If you don't want to use a batch file, you can use mogrify, being aware that mogrify overwrite the original file.

This question is very frequent in StackExchange: for example this question or this other question.

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme