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 => {
|
it('zero offset', done => {
|
||||||
sharp(fixtures.inputJpg)
|
sharp(fixtures.inputJpg)
|
||||||
.resize(400)
|
.resize(80)
|
||||||
.composite([{
|
.composite([{
|
||||||
input: fixtures.inputPngWithTransparency16bit,
|
input: fixtures.inputPngWithTransparency16bit,
|
||||||
top: 0,
|
top: 0,
|
||||||
@ -157,7 +157,7 @@ describe('composite', () => {
|
|||||||
|
|
||||||
it('offset and gravity', done => {
|
it('offset and gravity', done => {
|
||||||
sharp(fixtures.inputJpg)
|
sharp(fixtures.inputJpg)
|
||||||
.resize(400)
|
.resize(80)
|
||||||
.composite([{
|
.composite([{
|
||||||
input: fixtures.inputPngWithTransparency16bit,
|
input: fixtures.inputPngWithTransparency16bit,
|
||||||
left: 10,
|
left: 10,
|
||||||
@ -174,7 +174,7 @@ describe('composite', () => {
|
|||||||
|
|
||||||
it('offset, gravity and tile', done => {
|
it('offset, gravity and tile', done => {
|
||||||
sharp(fixtures.inputJpg)
|
sharp(fixtures.inputJpg)
|
||||||
.resize(400)
|
.resize(80)
|
||||||
.composite([{
|
.composite([{
|
||||||
input: fixtures.inputPngWithTransparency16bit,
|
input: fixtures.inputPngWithTransparency16bit,
|
||||||
left: 10,
|
left: 10,
|
||||||
@ -192,7 +192,7 @@ describe('composite', () => {
|
|||||||
|
|
||||||
it('offset and tile', done => {
|
it('offset and tile', done => {
|
||||||
sharp(fixtures.inputJpg)
|
sharp(fixtures.inputJpg)
|
||||||
.resize(400)
|
.resize(80)
|
||||||
.composite([{
|
.composite([{
|
||||||
input: fixtures.inputPngWithTransparency16bit,
|
input: fixtures.inputPngWithTransparency16bit,
|
||||||
left: 10,
|
left: 10,
|
||||||
|