ks888 / LambStatus

[Maintenance mode] Serverless Status Page System
https://lambstatus.github.io
Apache License 2.0
1.3k stars 119 forks source link

Updating Logo Stream yields empty buffer #176

Open vinolent opened 4 years ago

vinolent commented 4 years ago

Cannot update the logo. The error Stream yields empty buffer is displayed. Looks like it might be related to this issue: https://github.com/aheckmann/gm/issues/752

Version 0.6.6

jt530 commented 4 years ago

I have the exact same issue - trying to upload a PNG logo results in the error 'Error: Stream yields empty buffer'.

I hope someone can advise please.

xpuskas commented 4 years ago

The issue is related to ImageMagick library not being bundled with node.js 10.X (which the "PostLogos" lamda function uses) and can be fixed easily by following https://github.com/aheckmann/gm/issues/752#issuecomment-545397275 (just deploy the custom ImageMagick layer and add it to the PostLogos lambda function).