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

164
Views
Fabric Js Image Show Bigger then the Canvas Size

I have updated the Fabric JS from version 1.6.0 to 4.6.0 and the image showing bigger and cutout the image. This is my code :

var CANVAS_HEIGHT =  $('#designing_main_image_container').height();
var CANVAS_WIDTH = CANVAS_HEIGHT;
var canvas_front_view = new fabric.Canvas('front_view');
canvas_front_view.setHeight(CANVAS_HEIGHT);
canvas_front_view.setWidth(CANVAS_WIDTH);

Same code with my previous fabric js version it was showing the perfect size image but after in version 4.6.0 it is not showing properly.

Few screenshoot to show you the issue :

Before, with FabricJS 1.6.0: Image of fabric js 1.6.0

Now, with FabricJS 4.6.0: Image fabric js 4.6.0

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!