How to scale the size of a screenshot using html2canvas?

Usually, it shouldn't be a problem, but I am not sure how HTML2Canvas fetches the image data to render it to canvas. My guess is that you are running in to a CORS problem because the images are loaded using XMLHttpRequest as a blob in a mixed local/remote/server setup. The most likely solution: It should work fine as long as the entire setup is on one online server domain (dynamic images, Hype etc.).

2 Likes