papandreou / express-processimage

Express middleware that processes served images according to the query string
BSD 3-Clause "New" or "Revised" License
56 stars 18 forks source link

Added support for configuring 'failOnError' for Sharp engine via 'impro' #161

Closed paras20xx closed 3 years ago

paras20xx commented 3 years ago

This change is useful in combination with PR https://github.com/papandreou/impro/pull/5

Copying the description from that pull request:

For allowing/blocking some corrupt images, one may want to configure failOnError option of the Sharp library. eg: Some Samsung devices may generate partially invalid JPEG files. Reference: https://github.com/lovell/sharp/issues/1578

paras20xx commented 3 years ago

Released in 10.2.2