drawshield / Drawshield-Code

PHP code to create SVG shield images from Blazons, as used on drawshield.net
https://drawshield.net
GNU General Public License v3.0
50 stars 17 forks source link

When using the JSON API, images returned are empty #677

Closed mirnovov closed 3 months ago

mirnovov commented 3 months ago

I use the Drawshield API for my heraldtron bot. When querying a blazon using JSON, the image property is an empty string instead of base64-encoded data as intended. This causes the bot to fail, cf. mirnovov/heraldtron#16

Example: https://drawshield.net/include/drawshield.php?blazon=azure&outputformat=json

karlwilcox commented 3 months ago

Thanks, I'll look into that today.

karlwilcox commented 3 months ago

Apologies, this should be working now. The node.js image conversion service had stopped working, not sure why (pm2 is supposed to fix that sort of thing!). I do have a monitor on the HTTP service (uptime robot) but not on the image conversion service so I don't get notified about problems with that, I'll investigate ways to monitor it. Thanks for raising this!

mirnovov commented 3 months ago

No problem, appreciate your looking into it.