jimp-dev / jimp

An image processing library written entirely in JavaScript for Node, with zero external or native dependencies.
http://jimp-dev.github.io/jimp/
MIT License
14.04k stars 760 forks source link

Image rotation is anticlock-wise, not clockwise #669

Closed GhosalkarPratik closed 5 years ago

GhosalkarPratik commented 5 years ago

Images rotating in the anti-clockwise direction

Expected Behavior

Expected to rotate image clockwise, as per documentation.

Current Behavior

But rotated anti-clockwise

Steps to Reproduce

Run the following code with image 'download.jpg' attached below in the same folder image

'use strict';

var Jimp = require('jimp');

Jimp.read('download.jpg')
  .then(lenna => {
    return lenna
      .rotate(90)
      .write('lena-small-bw.jpg');
  });

Expected behaviour: image

Actual behavior: image

Context

Failure Logs

hipstersmoothie commented 5 years ago

duplicate of #631