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.
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.