-
Notifications
You must be signed in to change notification settings - Fork 163
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
TypeError: null is not an object (evaluating 'i[0].match(/:(.*?);/)[1]') #36
Comments
Would you mind to upload the image so that I can reproduce the problem you mentioned? |
loading this image: https://svs.gsfc.nasa.gov/vis/a030000/a030800/a030877/frames/5760x3240_16x9_01p/BlackMarble_2016_1200m_australia_labeled.png , on
can not reproduce it on any other browser/device so far. |
@maxefi Thanks for the follow-up. I don't have any Apple device in hand so I cannot reproduce it. Can you use this script to run on your devices? |
@Donaldcwl Thanks very much for providing support for this issue. We've tried to use it on this device with the provided debugging version, it doesn't give any extra information. The error still is: I did a bit of extra logging in the provided file and found out that the following line: dataUrl = canvas.toDataURL(fileType, quality); in canvas.toDataURL returns the following: I did a bit more googling around it and it seems that it is due to iOS memory limitations that canvas.toDataURL is not working correctly: fengyuanchen/cropper#294 Let me know if you want me to test anything specific. Happy to do it. |
@Donaldcwl what are your thoughts on the issue? any possible workaround coming any soon? |
Same issue here |
I tried to set a |
I agree with the @defor comment. 😃😃 Because there is a When I tested Safari with a larger image than What do @Donaldcwl think about limiting the image to the maximum size supported by each browser? If you agree, can I fix it? ref. |
fixed in v1.0.15 |
I’m still having this issue with v1.0.15 on iPhones. Guessing it’s a memory issue? |
still appear with v1.0.17 on ios 13.0 |
I caught this error while using the library to compress 8M images:
TypeError: null is not an object (evaluating 'i[0].match(/:(.*?);/)[1]')
May I ask why there is such a mistake?How can I solve this problem?
The text was updated successfully, but these errors were encountered: