File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change 1
1
/*
2
- * JavaScript Load Image 1.9.0
2
+ * JavaScript Load Image 1.9.1
3
3
* https://github.com/blueimp/JavaScript-Load-Image
4
4
*
5
5
* Copyright 2011, Sebastian Tschan
148
148
( minHeight || destHeight ) / destHeight
149
149
) ;
150
150
if ( scale > 1 ) {
151
- destWidth = Math . ceil ( destWidth * scale ) ;
152
- destHeight = Math . ceil ( destHeight * scale ) ;
151
+ destWidth = destWidth * scale ;
152
+ destHeight = destHeight * scale ;
153
153
}
154
154
} ,
155
155
scaleDown = function ( ) {
158
158
( maxHeight || destHeight ) / destHeight
159
159
) ;
160
160
if ( scale < 1 ) {
161
- destWidth = Math . ceil ( destWidth * scale ) ;
162
- destHeight = Math . ceil ( destHeight * scale ) ;
161
+ destWidth = destWidth * scale ;
162
+ destHeight = destHeight * scale ;
163
163
}
164
164
} ;
165
165
if ( useCanvas ) {
You can’t perform that action at this time.
0 commit comments