sharp
sharp copied to clipboard
Fastest way to check image integrity
Is there a fast way to use sharp/vips to check the integrity of an image? We'd like to validate an uploaded image before saving it to storage.
Sharp could read the image, convert into another format and then watch for exceptions. However, this still spends unneeded time on format conversion.
Any thoughts or suggestions on the best approach?