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