You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
when calling the method add(), if the argument is a string of dataURL, will encounter the error,
the codes in whammy
if('canvas'inframe){//CanvasRenderingContext2Dframe=frame.canvas;}if('toDataURL'inframe){frame=frame.toDataURL('image/webp',this.quality)}elseif(typeofframe!="string"){throw"frame must be a a HTMLCanvasElement, a CanvasRenderingContext2D or a DataURI formatted string"}if(!(/^data:image\/webp;base64,/ig).test(frame)){throw"Input must be formatted properly as a base64 encoded DataURI of type image/webp";}
it seems that it is a little unreasonable
The text was updated successfully, but these errors were encountered:
Did you found a solution? I'm encountering the same problem but while runing add method directly on canvas which is said to run the toDataURL on the canvas object.
I modified the npm module resource, deleted the if statement, then it worked, hope it helps youOn 18 Feb 2018 07:00, L2L2L <[email protected]> wrote:Did you found a solution? I'm encountering the same problem but while runing add method directly on canvas which is said to run the toDataURL on the canvas object.
—You are receiving this because you authored the thread.Reply to this email directly, view it on GitHub, or mute the thread.
when calling the method add(), if the argument is a string of dataURL, will encounter the error,
the codes in whammy
it seems that it is a little unreasonable
The text was updated successfully, but these errors were encountered: