flutter_launcher_icons icon indicating copy to clipboard operation
flutter_launcher_icons copied to clipboard

Add a warning, if a user trys to add a icon with alpha channel as ios icon. Because this is not allowed by Appstore

Open HerrNiklasRaab opened this issue 6 years ago • 7 comments

HerrNiklasRaab avatar Dec 18 '18 19:12 HerrNiklasRaab

最好能自动去掉alpha通道

lifetin avatar Apr 09 '19 16:04 lifetin

Quick workaround: https://stackoverflow.com/a/26177376

mockturtl avatar May 30 '19 15:05 mockturtl

I'd like to see not only a warning but also the tool to automatically remove the alpha channel because Apple will reject any app submission with "invalid" icons.

Actually, it should be an easy fix. Instead of using encodePng it seems to be possible to use a PngEncoder() instance and set the channels property to rgb instead of rgba.

sma avatar Sep 12 '19 11:09 sma

A +1 on @sma 's suggestion. Google Play requires a 32-bit PNG (with transparency), while the App Store specifically disallows an alpha channel.

I would be great if the tool could account for this and strip the alpha from the iOS icons.

zmeggyesi avatar Nov 14 '19 08:11 zmeggyesi

@zmeggyesi you can use the params to resolve the alpha problem:

pubspec.yaml

flutter_icons:
  # image_path: "assets/images/favicon.png"
  image_path_android: "assets/images/favicon.png"
  image_path_ios: "assets/images/favicon_ios.png"

douglasrosa0110 avatar Mar 20 '21 21:03 douglasrosa0110

@douglasrosa0110 Yes, but that's beside the point. I don't want to have to deal with this at all if a simple way exists for the program to handle it - that's what it was made to do, to handle things for me, so I don't have to.

zmeggyesi avatar Mar 30 '21 17:03 zmeggyesi

@MarkOSullivan94, this issue has been resolved. Can you close it?

OutdatedGuy avatar Jun 20 '23 15:06 OutdatedGuy