fluttercandies / flutter_image_editor

Flutter plugin, support android/ios.Support crop, flip, rotate, color martix, mix image, add text. merge multi images.
Apache License 2.0
419 stars 129 forks source link

[Bug report] Color changes when modifying the SVG to PNG converted image using package #139

Open Mohanraj-SF4239 opened 2 weeks ago

Mohanraj-SF4239 commented 2 weeks ago

Version

1.3.0

Platforms

Android

Device Model

Realme 7 (android 12)

flutter info

[✓] Flutter (Channel stable, 3.19.4, on Microsoft Windows [Version 10.0.22621.4317], locale en-US)
    • Flutter version 3.19.4 on channel stable at D:\flutter_windows_3.19.4-stable\flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 68bfaea224 (8 months ago), 2024-03-20 15:36:31 -0700
    • Engine revision a5c24f538d
    • Dart version 3.3.2
    • DevTools version 2.31.1

[✓] Windows Version (Installed version of Windows is version 10 or higher)

[!] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
    • Android SDK at C:\Users\MohanRajSrinivasan\AppData\Local\Android\sdk
    ✗ cmdline-tools component is missing
      Run `path/to/sdkmanager --install "cmdline-tools;latest"`
      See https://developer.android.com/studio/command-line for more details.
    ✗ Android license status unknown.
      Run `flutter doctor --android-licenses` to accept the SDK licenses.
      See https://flutter.dev/docs/get-started/install/windows#android-setup for more details.

[✓] Chrome - develop for the web
    • Chrome at C:\Program Files (x86)\Google\Chrome\Application\chrome.exe

[✗] Visual Studio - develop Windows apps
    ✗ Visual Studio not installed; this is necessary to develop Windows apps.
      Download at https://visualstudio.microsoft.com/downloads/.
      Please install the "Desktop development with C++" workload, including all of its default components

[✓] Android Studio (version 2022.3)
    • Android Studio at C:\Program Files\Android\Android Studio2
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 17.0.6+0-b2043.56-10027231)

[✓] VS Code, 64-bit edition (version 1.95.1)
    • VS Code at C:\Program Files\Microsoft VS Code
    • Flutter extension version 3.100.0

[✓] Connected device (5 available)
    • sdk gphone64 x86 64 (mobile) • emulator-5554 • android-x64    • Android 14 (API 34) (emulator)
    • sdk gphone64 x86 64 (mobile) • emulator-5556 • android-x64    • Android 14 (API 34) (emulator)
    • Windows (desktop)            • windows       • windows-x64    • Microsoft Windows [Version 10.0.22621.4317]
    • Chrome (web)                 • chrome        • web-javascript • Google Chrome 130.0.6723.92
    • Edge (web)                   • edge          • web-javascript • Microsoft Edge 130.0.2849.68

[✓] Network resources
    • All expected network resources are available.

How to reproduce?

Here’s a brief overview of what I’m doing:

  1. Convert SVG to PNG using flutter_svg package.
  2. Load the PNG image into image_editor.
  3. Apply modifications (e.g., cropping, rotating).
  4. Save the modified image.
  5. After this, view the modified image, the colors in the image appear different from the original.

Logs

No response

Example code (optional)

No response

Contact

No response