We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
the images are divided in half
Example:
what should I do?
The text was updated successfully, but these errors were encountered:
For what it's worth, I had to double this by adding width * 2 :
width * 2
-var makeImgDataGetter = function (canvas) { - return function (img) { - canvas.setAttribute('width', img.width) - canvas.setAttribute('height', img.height) +var makeImgDataGetter = function(canvas) { + return function(img) { + canvas.setAttribute("width", img.width * 2); + canvas.setAttribute("height", img.height); var context = canvas.getContext("2d"); context.drawImage(img, 0, 0); - return context.getImageData(0, 0, img.width, img.height); - } -} + return context.getImageData(0, 0, img.width * 2, img.height); + }; +};
Sorry, something went wrong.
For anyone else stumbling upon this problem: Replace img.height and img.width with img.naturalHeight and img.naturalWidth respectively
img.height
img.width
img.naturalHeight
img.naturalWidth
No branches or pull requests
the images are divided in half
Example:
what should I do?
The text was updated successfully, but these errors were encountered: