imgly / rembrandt

Image comparison using node-canvas

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

browser result.compositionImage base64 encoded incorrectly

rifflesbits opened this issue · comments

The base64 image data returned in the result.compositionImage is incorrect.

If you paste its contents in one of the online base64 image decoders - it will not produce an image.

$('#diffImg').attr('src', 'data:image/png;base64,' + result.compositionImage.toString('base64'));

I just saw that result.compositionImage value returned from rembrandt compare function is actually the entire tag which wraps the data. Closing issue.