Donaldcwl / browser-image-compression

Image compression in web browser
MIT License
1.31k stars 161 forks source link

showing error while compressing globalThis is not defined #108

Closed modernsilpi closed 3 years ago

modernsilpi commented 3 years ago

in some device compression not working throwing this error "globalThis is not defined "

tianwawawa commented 3 years ago

chrome version > 70

tianwawawa commented 3 years ago

check out your chrome version

Donaldcwl commented 3 years ago

@modernsilpi "globalThis" is widely supported by modern browsers. Please check here: https://caniuse.com/?search=globalThis

zhicong commented 3 years ago

I ran into this issue as well when trying to figure out why image compression was failing on old browsers. Since the package needs globalThis to work, it would be great if you could update your compatibility table to show that IE 10 and 11 are not supported.

Screenshot 2021-07-13 at 1 15 24 AM

Thanks for creating this package to make image compression a breeze!

Donaldcwl commented 3 years ago

I ran into this issue as well when trying to figure out why image compression was failing on old browsers. Since the package needs globalThis to work, it would be great if you could update your compatibility table to show that IE 10 and 11 are not supported.

Screenshot 2021-07-13 at 1 15 24 AM

Thanks for creating this package to make image compression a breeze!

IE compatibility fixed in v1.0.15