mirror of
https://github.com/lovell/sharp.git
synced 2025-12-19 07:15:08 +01:00
Input image decoding fail fast by default
This commit is contained in:
@@ -9,7 +9,7 @@ const sharp = require('../build/Release/sharp.node');
|
||||
* @private
|
||||
*/
|
||||
function _createInputDescriptor (input, inputOptions, containerOptions) {
|
||||
const inputDescriptor = { failOnError: false };
|
||||
const inputDescriptor = { failOnError: true };
|
||||
if (is.string(input)) {
|
||||
// filesystem
|
||||
inputDescriptor.file = input;
|
||||
|
||||
Reference in New Issue
Block a user