node-colour-extractor icon indicating copy to clipboard operation
node-colour-extractor copied to clipboard

Callback upon error and exception handling

Open jolks opened this issue 7 years ago • 0 comments

This is to allow color extraction to still continue working in case of error or exception.

In parseHistogramLine function, when gm does not fully remove the EXIF data, error such as Cannot read property 'split' of undefined will occur. The EXIF data looks like [ 'EXIF', 'Orientation={1' ].

Regardless of the EXIF data are there or not, exception handler will help.

jolks avatar Jun 02 '17 08:06 jolks