Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can you please tell me how you can change the canvas width height according to background image load. #23

Closed
unitedsol opened this issue Jan 5, 2018 · 4 comments
Assignees
Labels

Comments

@unitedsol
Copy link

Can you please tell me how you can change the canvas width height according to background image load with its uppar canvas and lower canvas and rest of canvas container was 100% both height and width.

Regards

@dongsik-yoo dongsik-yoo self-assigned this Jan 8, 2018
@dongsik-yoo
Copy link
Contributor

Sorry for late answer.
tui-image-editor uses Canvas.setDimensions() fabric API for that. fabricjs provides two options(cssOnly, backstoreOnly) with resizing canvas.

In tui-image-editor, you can see the usage at graphics.js.

I hope this will help you.

@unitedsol
Copy link
Author

No its ok, Thankyou for reply,

I can try this solution in my project and if i have any issue i can let you know. Can you please give me your email this will be really appreciated.

Thanks in advance.

Regards

@dongsik-yoo
Copy link
Contributor

Are you using tui-image-editor?
Any issue is welcome. Several maintainers will take it.
Please leave a github issue.
Thank you.

@unitedsol
Copy link
Author

No I am working an application in which i can use fabric js.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants