如何检查该jpeg文件包含DNL标记与nodejs?

在我的应用程序中,我使用nodejs的opencv绑定。 几天前,它开始崩溃的一些文件错误:

OpenCV Error: Unknown error code -10 (Raw image encoder error: Empty JPEG image (DNL not supported)) in throwOnEror file /home/.../opencv/src/modules/highgui/src/grfmt_base.cpp, line 131 terminate called after throwing an instance of 'cv::Exception' 

如何检查该文件是否包含DNL标记?