Shashank3736 / captcha-canvas

A captcha generator by using skia-canvas.
https://captcha-canvas.js.org
Apache License 2.0
61 stars 11 forks source link

not working as expected in a linux machine #63

Closed craciu25yt closed 4 months ago

craciu25yt commented 4 months ago

hello. I'm doing a discord bot and I'm using captcha-canva to do the captchas. It works in my windows machine as expected but then when I deploy it to railway the captchas for some reason are way more small. image image this is my generator code:

const captcha = new CaptchaGenerator()
        .setDimension(150, 400)
        .setCaptcha({color: "#5964F3", skew: false, characters: 5})
        .setTrace({color: "#5964F3"})
craciu25yt commented 4 months ago

I had

[phases.setup]
nixPkgs = ["...", "fontconfig"]
nixLibs = ["...", "fontconfig"]

instead of

[phases.setup]
aptPkgs = ["...", "fontconfig"]

at nixpacks.toml