padded zeroes
parent
def4998ec4
commit
90ca7333c8
|
@ -165,8 +165,8 @@ export class Page {
|
||||||
const filenames = this.frameHandler.GetFilenames();
|
const filenames = this.frameHandler.GetFilenames();
|
||||||
for (let i = 0; i < filenames.length; i++) {
|
for (let i = 0; i < filenames.length; i++) {
|
||||||
const filedata = filenames[i].split('base64,')[1];
|
const filedata = filenames[i].split('base64,')[1];
|
||||||
const padding = i;
|
const padding = i.toString().padStart(3, '0');
|
||||||
zip.file(name + padding.toString() + '.png', filedata, { base64: true });
|
zip.file(name + '_' + padding.toString() + '.png', filedata, { base64: true });
|
||||||
}
|
}
|
||||||
// save zip
|
// save zip
|
||||||
zip.generateAsync({ type: 'blob' }).then((content) => {
|
zip.generateAsync({ type: 'blob' }).then((content) => {
|
||||||
|
|
Loading…
Reference in New Issue