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
It would be great if the library would export a isPng(data: ImageData) : boolean function that does the png signature check (which is already happening internally)
This way I could avoid catching the error when trying to decode a non-png and just check pre-emptively.
The text was updated successfully, but these errors were encountered:
It would be great if the library would export a
isPng(data: ImageData) : boolean
function that does the png signature check (which is already happening internally)This way I could avoid catching the error when trying to decode a non-png and just check pre-emptively.
The text was updated successfully, but these errors were encountered: