R
Railwayβ€’3mo ago
KYUU 🐣

Missing Text When I have Generate with Canvas API

Hello Team ! I need help and have some question for asking you
Solution:
you may need to install fontconfig as shown here - https://github.com/brody192/node-canvas-fonts/blob/main/railway.json just copy this railway.json file to your project...
Jump to solution
11 Replies
Percy
Percyβ€’3mo ago
Project ID: b81fc524-4ecb-482d-9fca-0df60d63e12e
KYUU 🐣
KYUU 🐣OPβ€’3mo ago
b81fc524-4ecb-482d-9fca-0df60d63e12e @Percy can you help me ?
jeremy
jeremyβ€’3mo ago
Percy is a bot
KYUU 🐣
KYUU 🐣OPβ€’3mo ago
so can you help me ? i have some question with railway
jeremy
jeremyβ€’3mo ago
to help you, you would need to provide more information: - tech stack, what are you using - what kind of error are you having - is it related to railway or not, can you find your answer in the canvas API documentation? - how are you deploying on railway, nixpack, dockerfile? if dockerfile, is it working locally when you are building/running?
KYUU 🐣
KYUU 🐣OPβ€’3mo ago
i have an error with canvas API generate image when i have generate in my local the text in the image is working but when i have deployed the code and generate with my production it's missing the text may i know or what should i need to install in my project ? good afternoon sir ! do you have any update ?
jeremy
jeremyβ€’3mo ago
Nope, I wouldn't be able to help you. Re-read my message above, and provide information about the error you are having
KYUU 🐣
KYUU 🐣OPβ€’3mo ago
- for tech i have used the node js - my issued is missing text when i have genearate the image with Canvas API - Okay i will check more about Canvas API Docu - for the code i have deploying on railway with nixpack for locally is working fine
Solution
Brody
Brodyβ€’3mo ago
you may need to install fontconfig as shown here - https://github.com/brody192/node-canvas-fonts/blob/main/railway.json just copy this railway.json file to your project
KYUU 🐣
KYUU 🐣OPβ€’3mo ago
let me try i will update you later ✌️ @Brody now is working fine sir ! thank you :salute:
Brody
Brodyβ€’3mo ago
awsome!
Want results from more Discord servers?
Add your server