Skip to content

Why does the BG of a Transparent image become black after cropping? #162

Closed Answered by hm21
osmanyz asked this question in Q&A
Discussion options

You must be logged in to vote

The problem here is that the default output format is JPEG. You can change it to PNG as below, which should resolve the problem.

ProImageEditor.memory(
        bytes!,
        configs: const ProImageEditorConfigs(
          imageGenerationConfigs: ImageGeneratioConfigs(
            outputFormat: OutputFormat.png,
          ),
        ),
),

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@osmanyz
Comment options

@hm21
Comment options

hm21 Jul 15, 2024
Maintainer

@osmanyz
Comment options

Answer selected by osmanyz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants