Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

144
Vistas
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
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda