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

How to change the tiff.toCanvas()? #56

Open
HeWei-imagineer opened this issue Aug 24, 2020 · 1 comment
Open

How to change the tiff.toCanvas()? #56

HeWei-imagineer opened this issue Aug 24, 2020 · 1 comment

Comments

@HeWei-imagineer
Copy link

When I use tiff.toCanvas(), I hope I can change the canvas's width and height. Is there a API to change it?

@rendlp
Copy link

rendlp commented Sep 2, 2020

Hi HeWei, I had an issue like this for an earlier project.

My solution was to wrap the canvas in a div and to apply the following CSS to the div, or to apply the following CSS directly onto the canvas that the image is being placed in:

::ng-deep .Your-Div-Or-Canvas-Id > img {
    max-height: 1340px !important; <---- adjusts the size
    padding: 6px;
}

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

No branches or pull requests

2 participants