Skip to content

Using crop() with preset filters that use copyParent produces artifacts in the image #153

@raine

Description

@raine

This for example seems to have weird results for any effect that uses copyParent internally, until I comment the crop().

By the way, this is in node.

Caman(buf, function() {
  this.crop(290, 290, 25, 25);
  this[filter]();
  this.render(function() {
    resolve(this.canvas.toBuffer());
  });
});

update:

Here's a workaround:

Caman(buf, function() {
  this.crop(290, 290, 25, 25);
  this.render(function() {
    this[filter]();
    this.render(function() {
      resolve(this.canvas.toBuffer());
    });
  });
});

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions