Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

how to validate image binary in node js

Use "image-size" npm module and check dimensions in try/catch, this module fails while parsing the file if the file isn't a valid image.
 
PREVIOUS NEXT
Tagged: #validate #image #binary #node #js
ADD COMMENT
Topic
Name
3+4 =