Automattic / Automattic/node-canvas

drawImage stops drawing after some offset

Open
#1,074 0 comments 0 reactions 0 assignees View on GitHub
Bug
Dominant language
JavaScript
Stars
10.7k
Forks
1.2k
Avg merge
4d 8h
Merged PRs (30d)
1

Description

## Issue
Using drawImage
stops working when drawing with some offset from 0, 0 point. There's no error or anything it just stops redrawing source canvas onto target canvas at specific place (seems to be dependant on the source canvas size).

## Steps to Reproduce
Install canvas package, then run one of the following gist files (depending on canvas package version) https://gist.github.com/jan-j/15a7768a1962753721b509f5c6b9efc8.
Increase source size if can't reproduce, because I've noticed different behaviour between 2 devices.

Example output (should be whole red)
![target](https://user-images.githubusercontent.com/3267115/34731047-0989bb92-f559-11e7-9948-10b99c4f701c.png)

## Environment
* Version of node-canvas: 2.0.0-alpha.9 or 1.6.9
* Version of node: 8.9.4 or 6.9.0
* Version of GTK: 2.22.1
* Environment: Windows 10 64bit

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.