@@ -2484,16 +2484,16 @@ SM.extend({
2484
2484
matchFormat = / p n g | j p g | t i f f | w e b p / . exec ( fileFormat ) ;
2485
2485
var exportFormats =
2486
2486
( self . configs . unit == "dp/sp" && matchFormat ) ? [
2487
- { scale : 1 / self . configs . scale , prefix : "drawable-mdpi/" , format : "png" } ,
2488
- { scale : 1.5 / self . configs . scale , prefix : "drawable-hdpi/" , format : "png" } ,
2489
- { scale : 2 / self . configs . scale , prefix : "drawable-xhdpi/" , format : "png" } ,
2490
- { scale : 3 / self . configs . scale , prefix : "drawable-xxhdpi/" , format : "png" } ,
2491
- { scale : 4 / self . configs . scale , prefix : "drawable-xxxhdpi/" , format : "png" }
2487
+ { scale : 1 / self . configs . scale , prefix : "drawable-mdpi/" , format : fileFormat } ,
2488
+ { scale : 1.5 / self . configs . scale , prefix : "drawable-hdpi/" , format : fileFormat } ,
2489
+ { scale : 2 / self . configs . scale , prefix : "drawable-xhdpi/" , format : fileFormat } ,
2490
+ { scale : 3 / self . configs . scale , prefix : "drawable-xxhdpi/" , format : fileFormat } ,
2491
+ { scale : 4 / self . configs . scale , prefix : "drawable-xxxhdpi/" , format : fileFormat }
2492
2492
] :
2493
2493
( this . configs . unit == "pt" && matchFormat ) ? [
2494
- { scale : 1 / self . configs . scale , suffix : "" , format : "png" } ,
2495
- { scale : 2 / self . configs . scale , suffix : "@2x" , format : "png" } ,
2496
- { scale : 3 / self . configs . scale , suffix : "@3x" , format : "png" }
2494
+ { scale : 1 / self . configs . scale , suffix : "" , format : fileFormat } ,
2495
+ { scale : 2 / self . configs . scale , suffix : "@2x" , format : fileFormat } ,
2496
+ { scale : 3 / self . configs . scale , suffix : "@3x" , format : fileFormat }
2497
2497
] :
2498
2498
self . getFormats ( sizes ) ;
2499
2499
0 commit comments