I have an app icon for iOS but Apple doesn\'t allow alpha to be in the image. How to remove this alpha channel? I only have the png image with me I don\'t have the source fi
Having run into the same problem in the context of Flutter applications, I have dedicated a simple website for this task where you can remove alpha channels of images:
Remove Alpha Channel
Basically I run ImageMagick using Web Assembly directly in the browser, so none of your images are uploaded and you don't need any other tools like Gimp.
Well, since you're on a Mac, next time you probably just want to use Automator. Convert the image to BMP (lossless) and back to PNG. Let it save and voila...
The accepted answer to export to JPG, then back to PNG is not recommended.
Here's a super fast and easy way to do this without the extra export or saving to (lossy) JPG:
Using Preview app (Mac):
There's no need to export the image to jpg first. You can uncheck the checkbox for the alpha channel and export directly from a png to a png without alpha channel in the preview app.
the alpha check box is no longer there in preview
If you are using the Preview app, there's no need to export then re-export between jpg and png, just choose export and below the filetype (PNG) you will see an alpha checkbox, unset it and save.