meltingice / CamanJS

Javascript HTML5 (Ca)nvas (Man)ipulation
http://camanjs.com
BSD 3-Clause "New" or "Revised" License
3.56k stars 406 forks source link

Image getting garbled on rotate or gamma correction #100

Open rulaszek opened 11 years ago

rulaszek commented 11 years ago

Occasionally when I call rotate or adjust the gamma the image gets garbled. Any ideas?

image

Im doing this

    self.caman.revert();
    self.caman.rotate(self.rotation()).render(function () {
        self.caman.gamma(self.gamma() / 10).render(function () {
            self.image(this.toBase64());
        });
    });

or this

    self.caman.rotate(90).render(function () {
        self.image(this.toBase64());
    });