File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -29,9 +29,9 @@ class Resize extends require('./abstract-applicator') {
2929 width = imageWidth ;
3030 height = imageHeight ;
3131 } else if ( null === width ) {
32- width = height * ( ( null !== aspectRatio . w ? aspectRatio . w : imageWidth ) / ( null !== aspectRatio . h ? aspectRatio . h : imageHeight ) ) ;
32+ width = height * ( ( null !== aspectRatio ? aspectRatio . w : imageWidth ) / ( null !== aspectRatio ? aspectRatio . h : imageHeight ) ) ;
3333 } else if ( null === height ) {
34- height = width / ( ( null !== aspectRatio . w ? aspectRatio . w : imageWidth ) / ( null !== aspectRatio . h ? aspectRatio . h : imageHeight ) ) ;
34+ height = width / ( ( null !== aspectRatio ? aspectRatio . w : imageWidth ) / ( null !== aspectRatio ? aspectRatio . h : imageHeight ) ) ;
3535 }
3636
3737 width = parseInt ( null !== width ? width * pd : width ) ;
You can’t perform that action at this time.
0 commit comments