File tree Expand file tree Collapse file tree 2 files changed +6
-0
lines changed
Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -98,6 +98,10 @@ <h2>Select an image file</h2>
9898 < option value ="8 "> 8: left-bottom (90° rotate left)</ option >
9999 </ select >
100100 </ p >
101+ < p >
102+ < label for ="image-smoothing "> Image smoothing</ label >
103+ < input type ="checkbox " id ="image-smoothing " checked />
104+ </ p >
101105 < h2 > Result</ h2 >
102106 < p id ="actions " style ="display: none; ">
103107 < button type ="button " id ="edit "> Edit</ button >
Original file line number Diff line number Diff line change @@ -142,6 +142,7 @@ $(function () {
142142 pixelRatio : window . devicePixelRatio ,
143143 downsamplingRatio : 0.5 ,
144144 orientation : Number ( $ ( '#orientation' ) . val ( ) ) || true ,
145+ imageSmoothingEnabled : $ ( '#image-smoothing' ) . is ( ':checked' ) ,
145146 meta : true
146147 }
147148 exifNode . hide ( ) . find ( 'table' ) . remove ( )
@@ -265,6 +266,7 @@ $(function () {
265266 maxWidth : result . width ( ) * pixelRatio ,
266267 contain : true ,
267268 pixelRatio : pixelRatio ,
269+ imageSmoothingEnabled : $ ( '#image-smoothing' ) . is ( ':checked' )
268270 } )
269271 )
270272 coordinates = null
You can’t perform that action at this time.
0 commit comments