mrrhak / icons_launcher

Icons Launcher - A command-line tool that simplifies the task of updating your Flutter app's launcher icon. Full flexibility allows you to only update the launcher icon for specific platforms as needed.
https://pub.dev/packages/icons_launcher
MIT License
96 stars 11 forks source link

[BUG] image resizing bad quality #58

Closed lukepighetti closed 5 days ago

lukepighetti commented 3 weeks ago

source image:

icon-fg

output image:

ic_launcher_foreground

icons_launcher:
  image_path: assets/icon.png
  platforms:
    android:
      enable: true
      adaptive_foreground_image: "assets/icon-fg.png"
  icons_launcher:
    dependency: "direct dev"
    description:
      name: icons_launcher
      sha256: "9b514ffed6ed69b232fd2bf34c44878c8526be71fc74129a658f35c04c9d4a9d"
      url: "https://pub.dev"
    source: hosted
    version: "2.1.7"
mrrhak commented 3 weeks ago

Hi @lukepighetti, Could you try change your source image from 512x512 to 1024x1024 instead? It maybe the problem from image resize interpolation.

JobMoll commented 2 weeks ago

My images were 4096x4096. Changing it to 1024x1024 fixed the issue.

github-actions[bot] commented 5 days ago

Without additional information, we are unfortunately not sure how to resolve this issue. We're therefore reluctantly going to close it. Feel free to open a new issue with all the required information provided, including a minimal, reproducible sample. Make sure to diligently fill out the issue template. Thanks for your contribution.