sharp icon indicating copy to clipboard operation
sharp copied to clipboard

Fastest way to check image integrity

Open michael-evans-seequent opened this issue 3 years ago • 0 comments

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?

michael-evans-seequent avatar Sep 21 '22 21:09 michael-evans-seequent