Skip to content

Issues with captureEditorImage: Black Line at Bottom and Image Resolution Ratio #124

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

You must be logged in to vote

Question 1

I used your example, but in my case it didn't show a black border at the bottom. However, you can change the output format to PNG, which should fix it.

configs: ProImageEditorConfigs(
      imageGenerationConfigs: ImageGeneratioConfigs(
        outputFormat: OutputFormat.png,
      )
)

Question 2

Yes, you can also do it in the generation configs like below.

configs: ProImageEditorConfigs(
    imageGenerationConfigs: ImageGeneratioConfigs(
      /// The pixel ratio of the image relative to the content.
      customPixelRatio: MediaQuery.of(context).devicePixelRatio,

      /// The maximum output size for the image. It will maintain
      /// the image's aspect ratio but will fit…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by iOSyan
Comment options

You must be logged in to vote
0 replies
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