tiff.js
tiff.js copied to clipboard
How to change the tiff.toCanvas()?
When I use tiff.toCanvas(), I hope I can change the canvas's width and height. Is there a API to change it?
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;
}