Log failed image decoding
| @@ -158,7 +158,8 @@ async function tryReadImage(imgPath, crop) { | |||
| 158 | return image; | 158 | return image; |
| 159 | } | 159 | } |
| 160 | // If it's an unsupported type of image (APNG) - just read the file as buffer | 160 | // If it's an unsupported type of image (APNG) - just read the file as buffer |
| 161 | catch { | 161 | catch (error) { |
| 162 | console.log(`Failed to read image: ${imgPath}`, error); | ||
| 162 | return fs.readFileSync(imgPath); | 163 | return fs.readFileSync(imgPath); |
| 163 | } | 164 | } |
| 164 | } | 165 | } |