Skip to content

Commit

Permalink
Renable PNGEncoder blank (transparent) frames (#4)
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisgervang authored Jun 7, 2020
1 parent 6c044c4 commit 497f239
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion modules/core/src/encoders/tar/tar-encoder.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ class TarEncoder extends FrameEncoder {
const waitingForLoad = new Promise((resolve, reject) => {
// filtering out blank canvases
if (checkIfBlank(b64)) {
reject('BLANK');
// reject('BLANK');
}

fileReader.onload = () => {
Expand Down
2 changes: 1 addition & 1 deletion modules/core/src/encoders/utils/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ export function getBase64(canvas, type, quality) {
*/
export function checkIfBlank(b64) {
if (b64.length < 100000) {
console.error('SMALL IMAGE!', b64, b64.length);
console.warn('Possibly blank image!', b64, b64.length);
return true;
}
return false;
Expand Down

0 comments on commit 497f239

Please sign in to comment.