Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

143
Views
Electron skia-canvas not adding text to image canvas

I've build a NodeJs project using skia-canvas library and managed to get working a image canvas example with a text on it.

Here is the code. It loads an image and applies a filter, then applies a logo and the text.

const canvas = new Canvas(1920, 1080)
const context = canvas.getContext("2d")
const bk = await loadImage('image.png')
context.filter = 'grayscale(100%) brightness(80%) contrast(150%)'
drawImageProp(context, bk, 0, 0, 1920, 1080) //function to fit image
context.filter = 'none'
const logo = await loadImage('logo.png')
context.drawImage(logo, 0, 0)

const X_TEXT_POSITION = 107
    
context.font = 'bold 170px Open Sauce Sans'
context.fillStyle = "#ffffff"
context.text
context.fillText('Some Text', X_TEXT_POSITION, 375)

Now, I am using the exact same code on my Electron app, and the result is working partially. The image is applied, and the filter as well and even the logo appears in the result. What is not showing, though, is the 'Some Text', which works on the Node app

I am not receiving any errors in console and I have no other clue why this is not working.

Version:

"skia-canvas": "^0.9.25"
about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!