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

177
Views
How to create a big, but low resolution canvas in fabric js?

I'm trying to make a website that uses fabric js and have gotten some errors that suggest that I have too many canvases. It says "Total canvas memory use exceeds the maximum limit (480 MB)". So I'm trying to figure out a way to reduce the size of the canvases.

How can I make a very large fabric js canvas (eg the whole page) but with very low resolution? Basically, so it looks like MS Paint (I don't care at all about image quality). Eg if I set the width to 1px and the height to 1px and clicked on my page the whole page would just look black.

I tried to set the dimensions of the canvas really low like this:

canvas.setDimensions({
        "width": 10,
        "height": 10
    });

and then in my css file make the canvas element really big, like so:

 #canvas {
    width: 1000px;
    height: 1000px;
}

but the css does nothing and the canvas stays small.

I tried searching and couldn't find exactly what I was trying to achieve.

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!