@rootSep 14.2018 — #Then you need to be finding out the problem, any error messages generated that could be problematic or circular referencing which would eat up you ram.
What does the task manager for the browser say its consuming in memory, resources, etc.?
You might use toBlob nevertheless, use the polyfill given by Mozilla and accept that performance will be worse for Edge users.
Or, if you intend to upload the image to the server, you might do this without previous processing and adjust the the orientation on the server by PHP.