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

174
Vistas
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
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