Default Google Play Music Thumbnail source does not retrieve PNGs correctly
StephenGregory opened this issue · comments
Stack traces:
TypeError: Cannot read property 'length' of null
index.js:150
at new Jimp (/Users/stephen.gregory/gmusicHooks/node_modules/jimp/index.js:150:53)
/Users/stephen.gregory/gmusicHooks/node_modules/jimp/index.js:150
var bitmap = new Buffer(original.bitmap.data.length);
^
TypeError: Cannot read property 'length' of null
at new Jimp (/Users/stephen.gregory/gmusicHooks/node_modules/jimp/index.js:150:53)
at Jimp.clone (/Users/stephen.gregory/gmusicHooks/node_modules/jimp/index.js:541:17)
Not working:
-
Best for You Love - Bad Religion - The Dissent Of Man ( Bonus Track Version)
-
Big Sky, MT - Said the Whale (png)
-
The Island - Bad Religion (png)
Working (for comparison):
-
Step Into The Darkness - Said the Whale (jpeg)
-
Subterranean - Foo Fighters (jped)
Can no longer reproduce this.
Ad Hominem - Bad Religion had issues today: https://lh3.googleusercontent.com/1pHun-XTVpr1OPnkW4kh4b8bqwASERZl6-Fu9n43fxga-joma0Ne-yWSuBLTH2XP4VufqGA
Seems that doing
Jimp.read(imageBuffer).then((albumArt) => {
// create wallpaper
})
.catch((error) => log.error(err));
handles png buffers well.
What I am doing, (new Jimp(imageBuffer, () => {})
) does not.