fluttercommunity / flutter_launcher_icons

Flutter Launcher Icons - A package which simplifies the task of updating your Flutter app's launcher icon. Fully flexible, allowing you to choose what platform you wish to update the launcher icon for and if you want, the option to keep your old launcher icon in case you want to revert back sometime in the future. Maintainer: @MarkOSullivan94
https://pub.dev/packages/flutter_launcher_icons
MIT License
1.98k stars 393 forks source link

[BUG] Non-Square Images Squished #214

Open personalizedrefrigerator opened 3 years ago

personalizedrefrigerator commented 3 years ago

:information_source: Info

Version: 0.8.1

:speech_balloon: Description

It looks like non-square images are squished, rather than padded, when generating iOS favicons.

This also affects web favicon generation in https://github.com/fluttercommunity/flutter_launcher_icons/pull/155.

These images are from the example project directory.

Original (iOS)

image

Generated (iOS)

image

Is this expected behavior?

:scroll: Pubspec.yaml

name: example
description: A new Flutter project to quickly test flutter_launcher_icons.

version: 1.0.0+1

environment:
  sdk: ">=2.7.0 <3.0.0"

dependencies:
  flutter:
    sdk: flutter
  cupertino_icons: ^0.1.3
  flutter_launcher_icons:
    path: ../..

flutter_icons:
  #  image_path: "assets/images/icon-128x128.png"
  image_path_android: "assets/images/icon-710x599-android.png"
  image_path_ios: "assets/images/icon-710x599-ios.png"
  image_path_web: "assets/images/icon-710x599-web.png"
  android: true # can specify file name here e.g. "ic_launcher"
  ios: true # can specify file name here e.g. "My-Launcher-Icon"
  web: true # Can't specify file name here at present.
  adaptive_icon_background: "assets/images/christmas-background.png" # only available for Android 8.0 devices and above
  adaptive_icon_foreground: "assets/images/icon-foreground-432x432.png" # only available for Android 8.0 devices and above

dev_dependencies:
  flutter_test:
    sdk: flutter

flutter:
  uses-material-design: true
arjuns500 commented 3 years ago

I don't think iOS icons should have transparency in the background, so it might be intended. Someone pleace correct me if I'm wrong, though.