scaleflex / filerobot-image-editor

Edit, resize, and filter any image! Any questions or issues, please report to https://github.com/scaleflex/filerobot-image-editor/issues
MIT License
1.27k stars 322 forks source link

Override default canvas/image size #399

Closed ThatBusFromSpeed closed 1 month ago

ThatBusFromSpeed commented 8 months ago

Regardless of the size of the image I load the editor with, it constrains itself to 250px in height, with the total height of the editor being locked to somewhere around 550px. I've tried this with images from 500x500 to 5000x5000, producing the same 250px high canvas.

I checked the documentation and couldn't find an obvious way to set the dimensions of the canvas. What is the recommended way to set the size of the canvas/editor? Is there a way to have it scale automatically with image size?

jwbrown commented 8 months ago

Same issue

AhmeeedMostafa commented 8 months ago

The editor respects the HTML container dimensions, so you should change the dimensions of your container to what fit your needs