Skip to content

Image reference error in Webworker #194

Open
@Jungho-Cheon

Description

@Jungho-Cheon

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

Activity

changed the title [-]Web worker Error[/-] [+]Image reference error in Webworker[/+] on May 18, 2023
Jungho-Cheon

Jungho-Cheon commented on May 18, 2023

@Jungho-Cheon
Author

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @Jungho-Cheon

        Issue actions

          Image reference error in Webworker · Issue #194 · Donaldcwl/browser-image-compression