Replies: 1 comment
-
|
Hey Ali, Sorry, I completely forgot to answer your email cuz I'm currently drowning in work. However, I'll answer your question quickly. Yes, there are some performance improvements you could make, but they could negatively affect users with newer devices. I recommend first detecting if the user has a low-end device and applying the improvements only if necessary. Below are configurations you could try: late final _configs = ProImageEditorConfigs(
imageGeneration: const ImageGenerationConfigs(
// This configuration starts generating the output image every time the image changes.
// Disabling it will only generate the image once the user presses "Done".
// Disable it will ensure the processors can't be overloaded.
enableBackgroundGeneration: false,
// This will generate the image in separate threads, but in your case, it might be better to
// render in the main thread. Be careful, though; that could freeze the UI.
enableIsolateGeneration: false,
// The higher the output resolution, the longer it takes to generate the image.
// If possible, you can limit the size here.
maxOutputSize: Size(1440, 1440),
// By default, the editor detects how many processors are available. However, it may be
// better to just use "one" here, as Shorebird may use it for other stuff.
processorConfigs: ProcessorConfigs(processorMode: ProcessorMode.minimum),
),Also, keep in mind that the JPEG output format will be faster than PNG. Btw i will convert that issue to the "discuss-tab" as i prefer every questions in the Q&A there. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
When clicking “Save,” the process can take up to 30 seconds on older devices before the file is actually written.
From your perspective, are there any settings or best practices to speed up saving (e.g., output format/quality, image size/downscaling, canvas handling, asynchronous save, Blob instead of DataURL, etc.)?
Beta Was this translation helpful? Give feedback.
All reactions