Skip to content

Commit 5864500

Browse files
committed
#221: * image.type
1 parent ea94252 commit 5864500

File tree

5 files changed

+11
-8
lines changed

5 files changed

+11
-8
lines changed

dist/FileAPI.html5.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2156,13 +2156,14 @@
21562156
params.rotate = 'auto';
21572157
}
21582158

2159+
ImgTrans.set({ type: ImgTrans.matrix.type || params.type || file.type || 'image/png' });
2160+
21592161
if( !isFn ){
21602162
ImgTrans.set({
21612163
deg: params.rotate
2162-
, type: params.type || file.type || 'image/png'
2163-
, quality: params.quality || 1
21642164
, overlay: params.overlay
21652165
, filter: params.filter
2166+
, quality: params.quality || 1
21662167
});
21672168
}
21682169

dist/FileAPI.html5.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/FileAPI.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2156,13 +2156,14 @@
21562156
params.rotate = 'auto';
21572157
}
21582158

2159+
ImgTrans.set({ type: ImgTrans.matrix.type || params.type || file.type || 'image/png' });
2160+
21592161
if( !isFn ){
21602162
ImgTrans.set({
21612163
deg: params.rotate
2162-
, type: params.type || file.type || 'image/png'
2163-
, quality: params.quality || 1
21642164
, overlay: params.overlay
21652165
, filter: params.filter
2166+
, quality: params.quality || 1
21662167
});
21672168
}
21682169

dist/FileAPI.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/FileAPI.Image.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -365,13 +365,14 @@
365365
params.rotate = 'auto';
366366
}
367367

368+
ImgTrans.set({ type: ImgTrans.matrix.type || params.type || file.type || 'image/png' });
369+
368370
if( !isFn ){
369371
ImgTrans.set({
370372
deg: params.rotate
371-
, type: params.type || file.type || 'image/png'
372-
, quality: params.quality || 1
373373
, overlay: params.overlay
374374
, filter: params.filter
375+
, quality: params.quality || 1
375376
});
376377
}
377378

0 commit comments

Comments
 (0)