hm21 / pro_image_editor

The pro_image_editor is a Flutter widget designed for image editing within your application. It provides a flexible and convenient way to integrate image editing capabilities into your Flutter project.
https://hm21.github.io/pro_image_editor/
BSD 3-Clause "New" or "Revised" License
119 stars 69 forks source link

[Bug]: Transparent background #186

Closed HeropolisDa2ny closed 2 months ago

HeropolisDa2ny commented 2 months ago

Package Version

4.3.3

Flutter Version

3.22.3

Platforms

Android, iOS, Web

How to reproduce?

I haven't found any configuration about that but it would be great to keep a transparent background instead of replacing it by a black one.

Logs (optional)

No response

Example code (optional)

@override
  Widget build(BuildContext context) {
    return ProImageEditor.memory(
      image,
      configs: configs,
    );
  }

Device Model (optional)

No response

hm21 commented 2 months ago

Do you use the default jpg output format, or do you set it to png to support transparent images? If not, could you try changing the format as shown in this example.

HeropolisDa2ny commented 2 months ago

Perfect it my problem is corrected with your solution 👍