Tests: tighten composite offset thresholds
BIN
test/fixtures/expected/overlay-offset-0.jpg
vendored
Before Width: | Height: | Size: 24 KiB After Width: | Height: | Size: 2.1 KiB |
Before Width: | Height: | Size: 64 KiB After Width: | Height: | Size: 2.9 KiB |
Before Width: | Height: | Size: 24 KiB After Width: | Height: | Size: 2.0 KiB |
BIN
test/fixtures/expected/overlay-offset-with-tile.jpg
vendored
Before Width: | Height: | Size: 64 KiB After Width: | Height: | Size: 2.9 KiB |
@ -141,7 +141,7 @@ describe('composite', () => {
|
||||
|
||||
it('zero offset', done => {
|
||||
sharp(fixtures.inputJpg)
|
||||
.resize(400)
|
||||
.resize(80)
|
||||
.composite([{
|
||||
input: fixtures.inputPngWithTransparency16bit,
|
||||
top: 0,
|
||||
@ -157,7 +157,7 @@ describe('composite', () => {
|
||||
|
||||
it('offset and gravity', done => {
|
||||
sharp(fixtures.inputJpg)
|
||||
.resize(400)
|
||||
.resize(80)
|
||||
.composite([{
|
||||
input: fixtures.inputPngWithTransparency16bit,
|
||||
left: 10,
|
||||
@ -174,7 +174,7 @@ describe('composite', () => {
|
||||
|
||||
it('offset, gravity and tile', done => {
|
||||
sharp(fixtures.inputJpg)
|
||||
.resize(400)
|
||||
.resize(80)
|
||||
.composite([{
|
||||
input: fixtures.inputPngWithTransparency16bit,
|
||||
left: 10,
|
||||
@ -192,7 +192,7 @@ describe('composite', () => {
|
||||
|
||||
it('offset and tile', done => {
|
||||
sharp(fixtures.inputJpg)
|
||||
.resize(400)
|
||||
.resize(80)
|
||||
.composite([{
|
||||
input: fixtures.inputPngWithTransparency16bit,
|
||||
left: 10,
|
||||
|