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

194
Views
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
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!