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

Image reference error in Webworker #194

Open
Jungho-Cheon opened this issue May 18, 2023 · 1 comment
Open

Image reference error in Webworker #194

Jungho-Cheon opened this issue May 18, 2023 · 1 comment

Comments

@Jungho-Cheon
Copy link

When I compress a particular image into a webworker, it seems that the loadImage function that calls while it compresses does not reference the image.
Could it be related to using different images for each test but not being able to refer to the image?

스크린샷 2023-05-18 오전 11 38 51

@Jungho-Cheon Jungho-Cheon changed the title Web worker Error Image reference error in Webworker May 18, 2023
@Jungho-Cheon
Copy link
Author

Jungho-Cheon commented May 18, 2023

I think I know why. If the image is corrupted, an error occurs in the createImageBitmap(). This makes to excute loadImage() seems to refer to the Image.

If I compress a corrupted image from a Chrome browser, sometimes it prints a white image from canvas, is there a way to notice this as an error?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant