@@ -368,7 +368,7 @@ describe('Resize dimensions', function () {
368368 assert . strictEqual ( true , data . length > 0 ) ;
369369 assert . strictEqual ( 'jpeg' , info . format ) ;
370370 assert . strictEqual ( 2800 , info . width ) ;
371- assert . strictEqual ( 2225 , info . height ) ;
371+ assert . strictEqual ( 2286 , info . height ) ;
372372 done ( ) ;
373373 } ) ;
374374 } ) ;
@@ -383,46 +383,12 @@ describe('Resize dimensions', function () {
383383 if ( err ) throw err ;
384384 assert . strictEqual ( true , data . length > 0 ) ;
385385 assert . strictEqual ( 'jpeg' , info . format ) ;
386- assert . strictEqual ( 2725 , info . width ) ;
386+ assert . strictEqual ( 2817 , info . width ) ;
387387 assert . strictEqual ( 2300 , info . height ) ;
388388 done ( ) ;
389389 } ) ;
390390 } ) ;
391391
392- it ( 'Do not crop when fit = cover and withoutReduction = true and width >= outputWidth, and height < outputHeight' , function ( done ) {
393- sharp ( fixtures . inputJpg )
394- . resize ( {
395- width : 3000 ,
396- height : 1000 ,
397- withoutReduction : true
398- } )
399- . toBuffer ( function ( err , data , info ) {
400- if ( err ) throw err ;
401- assert . strictEqual ( true , data . length > 0 ) ;
402- assert . strictEqual ( 'jpeg' , info . format ) ;
403- assert . strictEqual ( 3000 , info . width ) ;
404- assert . strictEqual ( 2225 , info . height ) ;
405- done ( ) ;
406- } ) ;
407- } ) ;
408-
409- it ( 'Do not crop when fit = cover and withoutReduction = true and width < outputWidth, and height >= outputHeight' , function ( done ) {
410- sharp ( fixtures . inputJpg )
411- . resize ( {
412- width : 1500 ,
413- height : 2226 ,
414- withoutReduction : true
415- } )
416- . toBuffer ( function ( err , data , info ) {
417- if ( err ) throw err ;
418- assert . strictEqual ( true , data . length > 0 ) ;
419- assert . strictEqual ( 'jpeg' , info . format ) ;
420- assert . strictEqual ( 2725 , info . width ) ;
421- assert . strictEqual ( 2226 , info . height ) ;
422- done ( ) ;
423- } ) ;
424- } ) ;
425-
426392 it ( 'Do enlarge when input width is less than output width' , function ( done ) {
427393 sharp ( fixtures . inputJpg )
428394 . resize ( {
0 commit comments