FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Desktop large image Support (#1613) · Kitware/dive@a0b94e6 · GitHub

/ dive Public

Commit a0b94e6

Browse files
authored
Desktop large image Support (#1613)
* initial large image desktop testing * faster loading * restructure logic * basic functionality * short circuit calc for 0 files * limit to tiff types for desktop * linting and build errors * fix PNG rendering * remove samplingRange code and defaulting to 0-255 * large image electron support improvements
1 parent eae308f commit a0b94e6

15 files changed

Lines changed: 1276 additions & 57 deletions

File tree

‎client/dive-common/apispec.ts‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,8 @@ interface SaveAttributeTrackFilterArgs {
111111
interface FrameImage {
112112
url: string;
113113
filename: string;
114+
/** Required for large-image (tiled) datasets; used as itemId for getTiles/getTileURL */
115+
id?: string;
114116
}
115117

116118
export interface MultiCamImportFolderArgs {

‎client/dive-common/constants.ts‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,11 +76,18 @@ const fileVideoTypes = [
7676
const largeImageTypes = [
7777
'image/geotiff',
7878
'image/tiff',
79+
'image/tif',
7980
'image/x-tiff',
8081
'image/nitf',
8182
'image/ntf',
8283
];
8384

85+
const largeImageDesktopTypes = [
86+
'geotiff',
87+
'tiff',
88+
'tif',
89+
];
90+
8491
const websafeImageTypes = [
8592
// 'image/apng',
8693
// 'image/bmp',
@@ -149,6 +156,7 @@ export {
149156
websafeVideoTypes,
150157
inputAnnotationTypes,
151158
largeImageTypes,
159+
largeImageDesktopTypes,
152160
inputAnnotationFileTypes,
153161
listFileTypes,
154162
zipFileTypes,

‎client/package-lock.json‎

Lines changed: 84 additions & 39 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎client/package.json‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,8 @@
3939
"csv-stringify": "^5.6.0",
4040
"d3": "^5.12.0",
4141
"geojs": "~1.6.2",
42+
"geotiff": "^3.0.0",
43+
"pngjs": "^7.0.0",
4244
"glob-to-regexp": "^0.4.1",
4345
"lodash": "^4.17.19",
4446
"moment": "^2.29.1",

0 commit comments

Comments
 (0)

Back | FazBrowse Home | New Git URL