mirror of
https://github.com/lovell/sharp.git
synced 2025-12-19 07:15:08 +01:00
Auto-width and height calcs now round instead of floor
I think this will better match people's expectations
This commit is contained in:
@@ -36,7 +36,7 @@ describe('Resize dimensions', function() {
|
||||
if (err) throw err;
|
||||
assert.strictEqual(true, data.length > 0);
|
||||
assert.strictEqual('jpeg', info.format);
|
||||
assert.strictEqual(391, info.width);
|
||||
assert.strictEqual(392, info.width);
|
||||
assert.strictEqual(320, info.height);
|
||||
done();
|
||||
});
|
||||
@@ -59,7 +59,7 @@ describe('Resize dimensions', function() {
|
||||
assert.strictEqual(true, data.length > 0);
|
||||
assert.strictEqual('jpeg', info.format);
|
||||
assert.strictEqual(3000, info.width);
|
||||
assert.strictEqual(2449, info.height);
|
||||
assert.strictEqual(2450, info.height);
|
||||
done();
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user