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

189
Vistas
How to change canvas background color in imagemaker plugin

I am using an imageMaker plugin.This is the reference link of the plugin. https://www.jqueryscript.net/other/image-merge-edit-draw-maker.html In this instead of changing and editing on an image I have to change the canvas background color. In the js file there is an option to make it full black. But it is also Image. I want to basically make the canvas fill with color instead of Image.

 canvas_info.templates.push({url:'data:image/gif;base64,R0lGODlhAQABAIAAAAUEBAAAACwAAAAAAQABAAACAkQBADs', 
                'title': 'Empty black'});

I commented MemeGeneratorAPI.canvas_addimage(); in js file and tried adding the below code to replace with color. But it didn't work. Looking for a solution for this. Thanks in advance!

// MemeGeneratorAPI.canvas_addimage();
  canvas_info.ctx.rect(20,20, image_info.width, image_info.height);
  canvas_info.ctx.stroke();
  canvas_info.ctx.fillStyle = "#FF0000";
  canvas_info.ctx.fillRect(20, 20, image_info.width, image_info.height);
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