Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: web worker for image to pdf processing #101

Open
shivam-bit opened this issue Dec 12, 2023 · 0 comments
Open

feat: web worker for image to pdf processing #101

shivam-bit opened this issue Dec 12, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@shivam-bit
Copy link
Contributor

Problem Statement

The application freezes when executing the downloadImagesAsPdf function, which involves heavy computation for image processing and PDF generation. This occurs due to the execution of resource-intensive tasks on the main thread, leading to a degradation in UI responsiveness.

Expected Behavior

The application should maintain a responsive user interface even during resource-intensive tasks, such as image processing and PDF generation.

Proposed Solution

To address the freezing issue, we propose moving the heavy computation to a Web Worker, which runs in the background and doesn't block the main thread. The Web Worker will handle image processing and PDF generation asynchronously.

@shivam-bit shivam-bit added the enhancement New feature or request label Dec 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant