mirror of
https://github.com/JannisX11/blockbench.git
synced 2025-02-05 15:50:21 +08:00
FIx GIF recorder export
This commit is contained in:
parent
40764f8234
commit
fff0f7a274
@ -390,14 +390,16 @@ const Screencam = {
|
|||||||
|
|
||||||
gif.finish();
|
gif.finish();
|
||||||
|
|
||||||
Blockbench.setProgress();
|
|
||||||
Blockbench.setStatusBarText();
|
|
||||||
|
|
||||||
let buffer = gif.bytesView();
|
let buffer = gif.bytesView();
|
||||||
let blob = new Blob([buffer], {type: 'image/gif'});
|
let blob = new Blob([buffer], {type: 'image/gif'});
|
||||||
let url = URL.createObjectURL(blob);
|
var reader = new FileReader();
|
||||||
Screencam.returnScreenshot(url, cb, blob);
|
reader.onload = () => {
|
||||||
|
Blockbench.setProgress();
|
||||||
|
Blockbench.setStatusBarText();
|
||||||
|
delete Screencam.processing_gif;
|
||||||
|
Screencam.returnScreenshot(reader.result, cb, blob);
|
||||||
|
}
|
||||||
|
reader.readAsDataURL(blob);
|
||||||
|
|
||||||
} else if (options.format == 'apng') {
|
} else if (options.format == 'apng') {
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user