-
Notifications
You must be signed in to change notification settings - Fork 404
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
RangeError #615
Comments
RangeError (length): Invalid value: Not in inclusive range 0..863: 1020 |
My icon was 1081x1081 PNG image with Indexed color. The problem resolved after converting that to RGB using GIMP. |
We added the image during the build process and did not have the option to change it by hand. Here is my python solution:
from PIL import Image
indexed_image = Image.open(img)
rgb_image = indexed_image.convert('RGB')
rgb_image.save(img) |
ℹ️ Info
Version 0.14.1
💬 Description
PS D:\FlutterProj\talalaeva> flutter pub run flutter_launcher_icons
Deprecated. Use
dart run
instead.════════════════════════════════════════════
FLUTTER LAUNCHER ICONS (v0.14.1)
════════════════════════════════════════════
• Creating default icons Android
• Adding a new Android launcher icon
• Creating mipmap xml file Android
✕ Could not generate launcher icons
RangeError (length): Invalid value: Not in inclusive range 0..863: 1020
📜 Pubspec.yaml
flutter_launcher_icons:
android: "launcher_icon"
ios: true
image_path: "assets/mainicon.png"
image_path_ios: "assets/mainicon.png"
remove_alpha_ios: true
The text was updated successfully, but these errors were encountered: