Skip to content

Commit

Permalink
Fixed incorrect header length causing output files to be bigger than …
Browse files Browse the repository at this point in the history
…they should be.
  • Loading branch information
datvm committed May 9, 2022
1 parent 0d6465f commit fb67658
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/png2icojs.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/png2icojs.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/png2icojs.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/png2icojs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export class PngIcoConverter {
// File Format: https://en.wikipedia.org/wiki/ICO_(file_format)

// File Header + Image Header + Image Content
const headersLen = FileHeaderSize + ImageHeaderSize * 16;
const headersLen = FileHeaderSize + ImageHeaderSize * inLen;
const totalLen = headersLen + this.sumInputLen(inputs);
const arr = new Uint8Array(totalLen);

Expand Down

0 comments on commit fb67658

Please sign in to comment.