0

I used Gimp to export a PNG to another without color values from transparent pixels. Is there ay way to do the same from the command line? I'm going to use this script from a php. The option in Gimp UI is "Save color values from transparent pixels" unchecked.

Best,

user47583
  • 3
  • 1

1 Answers1

1

Rather than trying to script a huge, interactive GUI program like the Gimp, how about just using a simple command line image tool like ImageMagick's convert. Here's the example that does exactly this from their documentation:

convert moon.png -background HotPink -alpha Background moon_hotpink.png
that other guy
  • 116,971
  • 11
  • 170
  • 194