Skip to content

drawImage bug in 1.2.0 #512

Closed
Closed
@bmustata

Description

@bmustata

Currently in version 1.2.0 (Linux) there is a drawImage bug where the image is not draw with it's full size when using the ctx.drawImage() command. This command is working correctly in version 1.1.6.

var Canvas = require('canvas')
, Image = Canvas.Image
, canvas = new Canvas(640, 471)
, ctx = canvas.getContext('2d')
, fs = require('fs');

fs.readFile(__dirname + '/images/capture.png', function(err, squid){
    if (err) throw err;
    img = new Image;
    img.src = squid;
    ctx.drawImage(img, 243, 95, 153, 273);

    fs.writeFile('output/out.png', canvas.toBuffer());
});

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions