Enhancement: better TIFF display support (#8087)

This commit is contained in:
shamoon
2024-12-01 11:46:19 -08:00
committed by GitHub
parent 3aec0b3372
commit 79345f0a69
6 changed files with 119 additions and 0 deletions

View File

@@ -388,6 +388,15 @@
<img [src]="previewUrl | safeUrl" width="100%" height="100%" alt="{{title}}" />
</div>
}
@case (ContentRenderType.TIFF) {
@if (!tiffError) {
<div class="preview-sticky">
<img [src]="tiffURL" width="100%" height="100%" alt="{{title}}" />
</div>
} @else {
<div class="preview-sticky bg-light p-3 overflow-auto whitespace-preserve" width="100%">{{tiffError}}</div>
}
}
@case (ContentRenderType.Other) {
<object [data]="previewUrl | safeUrl" class="preview-sticky" width="100%"></object>
}