Skip to content

Can you guide me in the right direction in order to implement some editor features #110

Closed Answered by hm21
murat-ti asked this question in Q&A
Discussion options

You must be logged in to vote

Question 1

Okay, a bit confusing, but I will answer step by step. I think this will help you the most.

On editor we can add image from gallery and instead of getting image as bytes in result, I just want to get image path.

Yes, you can add the image from file, network, asset and memory. The result will always be as Uint8List even if you use as example network because the editor can't write directly to these options. However, if you want to save your image as File, you can do it as below:

onImageEditingComplete: (bytes) async {
  await File('path-to-your-file').writeAsBytes(bytes);
}

I've checked state history and as I understand it retursn "imgSize":{"width":480.0,"height":480.0}, whic…

Replies: 5 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@hm21
Comment options

hm21 Jun 18, 2024
Maintainer

Answer selected by murat-ti
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@hm21
Comment options

hm21 Jun 19, 2024
Maintainer

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
question Further information is requested
2 participants
Converted from issue

This discussion was converted from issue #107 on June 17, 2024 19:44.