Import TIFF through the server and survive a wedged raw decoder
Browsers have no TIFF decoder, so TIFF import failed at createImageBitmap and the develop canvas asked for the undecodable original. TIFF now takes the raw proxy path (original stored, sharp writes the JPEG proxy) and the editor reads that proxy. LibRaw demosaic and preview calls are bounded so one bad file falls back to the embedded preview instead of hanging.
This commit is contained in:
Binary file not shown.
@@ -224,7 +224,7 @@
|
|||||||
<ul>
|
<ul>
|
||||||
<li>Drag a card or folder onto the window.</li>
|
<li>Drag a card or folder onto the window.</li>
|
||||||
<li>Pick the event, or type a new name.</li>
|
<li>Pick the event, or type a new name.</li>
|
||||||
<li>Raws need the server; JPEG/PNG/TIFF do not.</li>
|
<li>Raws and TIFF need the server; JPEG/PNG do not.</li>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
<div class="qs-box">
|
<div class="qs-box">
|
||||||
@@ -306,7 +306,7 @@
|
|||||||
<tbody>
|
<tbody>
|
||||||
<tr><td>Browser</td><td>A current Chromium (Chrome, Edge), Firefox or Safari with WebGL 2. Hardware acceleration is strongly recommended: previews, thumbnails and exports all render on the GPU.</td></tr>
|
<tr><td>Browser</td><td>A current Chromium (Chrome, Edge), Firefox or Safari with WebGL 2. Hardware acceleration is strongly recommended: previews, thumbnails and exports all render on the GPU.</td></tr>
|
||||||
<tr><td>Display</td><td>1280 × 800 minimum. The layout is built for a laptop and expands to fill a desktop screen.</td></tr>
|
<tr><td>Display</td><td>1280 × 800 minimum. The layout is built for a laptop and expands to fill a desktop screen.</td></tr>
|
||||||
<tr><td>Server (optional)</td><td>Node 22.5+ or Docker, for raw decoding, shared storage, accounts and proofing links. JPEG/PNG/TIFF work without it.</td></tr>
|
<tr><td>Server (optional)</td><td>Node 22.5+ or Docker, for raw and TIFF decoding, shared storage, accounts and proofing links. JPEG, PNG, WebP and AVIF work without it.</td></tr>
|
||||||
<tr><td>Windows app (optional)</td><td>Windows 10 or 11, 64-bit. Nothing else: Node, .NET and the VC++ runtime are bundled or not needed.</td></tr>
|
<tr><td>Windows app (optional)</td><td>Windows 10 or 11, 64-bit. Nothing else: Node, .NET and the VC++ runtime are bundled or not needed.</td></tr>
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
@@ -452,7 +452,8 @@
|
|||||||
<table>
|
<table>
|
||||||
<thead><tr><th style="width:34%">Type</th><th>Behaviour</th></tr></thead>
|
<thead><tr><th style="width:34%">Type</th><th>Behaviour</th></tr></thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
<tr><td>JPEG, PNG, WebP, AVIF, TIFF</td><td>Decoded in the browser. EXIF camera, lens, ISO, aperture, shutter and focal length are read when present.</td></tr>
|
<tr><td>JPEG, PNG, WebP, AVIF</td><td>Decoded in the browser. EXIF camera, lens, ISO, aperture, shutter and focal length are read when present.</td></tr>
|
||||||
|
<tr><td>TIFF (.tif, .tiff)</td><td>Decoded on the server into an editable JPEG proxy, because browsers have no TIFF decoder. The original TIFF is stored untouched and the full-resolution proxy drives the editor and export.</td></tr>
|
||||||
<tr><td>Camera raw — CR2, CR3, NEF, ARW, ORF, RW2, RAF, DNG, PEF, SRW, 3FR and 20 more</td><td>Sent to the server, demosaiced with LibRaw, stored as the original plus an editable JPEG proxy and a 16-bit sidecar.</td></tr>
|
<tr><td>Camera raw — CR2, CR3, NEF, ARW, ORF, RW2, RAF, DNG, PEF, SRW, 3FR and 20 more</td><td>Sent to the server, demosaiced with LibRaw, stored as the original plus an editable JPEG proxy and a 16-bit sidecar.</td></tr>
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
@@ -1176,6 +1177,7 @@
|
|||||||
<li><b>No plugin ecosystem.</b> Edits live in the catalogue record and XMP sidecars, not in third-party plugins.</li>
|
<li><b>No plugin ecosystem.</b> Edits live in the catalogue record and XMP sidecars, not in third-party plugins.</li>
|
||||||
<li><b>Colour management is per export.</b> Choose sRGB, Display P3 or Adobe RGB in the export dialog; the soft-proof panel handles printer gamut.</li>
|
<li><b>Colour management is per export.</b> Choose sRGB, Display P3 or Adobe RGB in the export dialog; the soft-proof panel handles printer gamut.</li>
|
||||||
<li><b>Browser storage is finite.</b> Large raw catalogues belong on the server; the browser copy is a working cache.</li>
|
<li><b>Browser storage is finite.</b> Large raw catalogues belong on the server; the browser copy is a working cache.</li>
|
||||||
|
<li><b>TIFF is edited through a proxy.</b> TIFF has no browser decoder, so the server writes a JPEG proxy capped at <code>RAW_EDGE</code> (6000 px by default); the original TIFF is stored unchanged for fidelity and re-proxying.</li>
|
||||||
<li><b>Unsigned Windows build.</b> SmartScreen warns on first run; sign the executable if you distribute it widely.</li>
|
<li><b>Unsigned Windows build.</b> SmartScreen warns on first run; sign the executable if you distribute it widely.</li>
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
@@ -1199,7 +1201,7 @@
|
|||||||
<tr><td>PNG (.png)</td><td>Browser</td></tr>
|
<tr><td>PNG (.png)</td><td>Browser</td></tr>
|
||||||
<tr><td>WebP (.webp)</td><td>Browser</td></tr>
|
<tr><td>WebP (.webp)</td><td>Browser</td></tr>
|
||||||
<tr><td>AVIF (.avif)</td><td>Browser</td></tr>
|
<tr><td>AVIF (.avif)</td><td>Browser</td></tr>
|
||||||
<tr><td>TIFF (.tif, .tiff)</td><td>Browser</td></tr>
|
<tr><td>TIFF (.tif, .tiff)</td><td>Server (sharp JPEG proxy; browsers cannot decode TIFF)</td></tr>
|
||||||
<tr><td>Camera raw: CR2, CR3, CRW, NEF, NRW, ARW, SRF, SR2, ORF, RW2, RWL, RAF, PEF, DNG, SRW, 3FR, FFF, IIQ, X3F, ERF, K25, KDC, DCR, MOS, MRW, MEF</td><td>Server (LibRaw)</td></tr>
|
<tr><td>Camera raw: CR2, CR3, CRW, NEF, NRW, ARW, SRF, SR2, ORF, RW2, RWL, RAF, PEF, DNG, SRW, 3FR, FFF, IIQ, X3F, ERF, K25, KDC, DCR, MOS, MRW, MEF</td><td>Server (LibRaw)</td></tr>
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
|
|||||||
Binary file not shown.
+8
-4
@@ -80,7 +80,7 @@ import {
|
|||||||
writeThumb16,
|
writeThumb16,
|
||||||
} from './storage.mjs';
|
} from './storage.mjs';
|
||||||
import { previewRebuildTargets, startPreviewRebuild } from './previewRebuild.mjs';
|
import { previewRebuildTargets, startPreviewRebuild } from './previewRebuild.mjs';
|
||||||
import { decodeRaw, isRawName, rawSupport } from './raw.mjs';
|
import { decodeRaw, decodeStill, isRawName, isStillName, rawSupport } from './raw.mjs';
|
||||||
import {
|
import {
|
||||||
bridgeConfigured,
|
bridgeConfigured,
|
||||||
bridgeForEvent,
|
bridgeForEvent,
|
||||||
@@ -2080,7 +2080,10 @@ route('POST', '/api/photos/:id/original', async ({ req, res, params }) => {
|
|||||||
const drop = url.searchParams.get('drop') === '1';
|
const drop = url.searchParams.get('drop') === '1';
|
||||||
const mime = normalizePhotoMime(url.searchParams.get('mime') || '', name);
|
const mime = normalizePhotoMime(url.searchParams.get('mime') || '', name);
|
||||||
const ext = (name.split('.').pop() || 'bin').toLowerCase();
|
const ext = (name.split('.').pop() || 'bin').toLowerCase();
|
||||||
const raw = isRawName(name) || drop;
|
// TIFF is not a raw container, but browsers cannot decode it either. It takes
|
||||||
|
// the same upload path and is turned into a JPEG proxy here with sharp.
|
||||||
|
const still = isStillName(name);
|
||||||
|
const raw = isRawName(name) || drop || still;
|
||||||
|
|
||||||
// New ids are part of the normal import flow: the client uploads bytes first
|
// New ids are part of the normal import flow: the client uploads bytes first
|
||||||
// and PUTs the record afterwards. Until that row exists the bytes are charged
|
// and PUTs the record afterwards. Until that row exists the bytes are charged
|
||||||
@@ -2148,7 +2151,7 @@ route('POST', '/api/photos/:id/original', async ({ req, res, params }) => {
|
|||||||
if (raw) {
|
if (raw) {
|
||||||
try {
|
try {
|
||||||
const data = await fsp.readFile(target);
|
const data = await fsp.readFile(target);
|
||||||
const decoded = await decodeRaw(data);
|
const decoded = still ? await decodeStill(data) : await decodeRaw(data);
|
||||||
await writePreview(params.id, decoded.jpeg, decoded.ext);
|
await writePreview(params.id, decoded.jpeg, decoded.ext);
|
||||||
if (decoded.preview16) {
|
if (decoded.preview16) {
|
||||||
await writePreview16(params.id, decoded.preview16.data);
|
await writePreview16(params.id, decoded.preview16.data);
|
||||||
@@ -2161,7 +2164,8 @@ route('POST', '/api/photos/:id/original', async ({ req, res, params }) => {
|
|||||||
}
|
}
|
||||||
const info = await jpegInfo(decoded.jpeg);
|
const info = await jpegInfo(decoded.jpeg);
|
||||||
return json(res, 201, {
|
return json(res, 201, {
|
||||||
raw: true,
|
raw: isRawName(name) || drop,
|
||||||
|
serverDecoded: still,
|
||||||
engine: decoded.engine,
|
engine: decoded.engine,
|
||||||
width: info?.width || decoded.width,
|
width: info?.width || decoded.width,
|
||||||
height: info?.height || decoded.height,
|
height: info?.height || decoded.height,
|
||||||
|
|||||||
+41
-4
@@ -28,6 +28,26 @@ export function isRawName(name = '') {
|
|||||||
return RAW_EXTENSIONS.has(ext);
|
return RAW_EXTENSIONS.has(ext);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Standard images that browsers cannot decode. TIFF takes the raw upload path
|
||||||
|
* (store the original, serve a JPEG proxy) but is decoded by sharp, not LibRaw.
|
||||||
|
*/
|
||||||
|
export const SERVER_IMAGE_EXTENSIONS = new Set(['tif', 'tiff']);
|
||||||
|
|
||||||
|
export function isStillName(name = '') {
|
||||||
|
const ext = name.split('.').pop()?.toLowerCase() ?? '';
|
||||||
|
return SERVER_IMAGE_EXTENSIONS.has(ext);
|
||||||
|
}
|
||||||
|
|
||||||
|
/** Rejects instead of waiting forever when a decoder wedges on one file. */
|
||||||
|
function withTimeout(promise, ms, message) {
|
||||||
|
let timer;
|
||||||
|
const guard = new Promise((_, reject) => {
|
||||||
|
timer = setTimeout(() => reject(new Error(message)), ms);
|
||||||
|
});
|
||||||
|
return Promise.race([promise, guard]).finally(() => clearTimeout(timer));
|
||||||
|
}
|
||||||
|
|
||||||
/** True when the buffer starts with a container signature LibRaw can open. */
|
/** True when the buffer starts with a container signature LibRaw can open. */
|
||||||
export function looksLikeRaw(buffer) {
|
export function looksLikeRaw(buffer) {
|
||||||
if (!buffer || buffer.length < 64) return false;
|
if (!buffer || buffer.length < 64) return false;
|
||||||
@@ -45,6 +65,19 @@ export function looksLikeRaw(buffer) {
|
|||||||
|
|
||||||
let engineState = 'unloaded';
|
let engineState = 'unloaded';
|
||||||
|
|
||||||
|
export async function decodeStill(buffer) {
|
||||||
|
const proxy = await toJpegProxy(buffer, RAW_PREVIEW_EDGE);
|
||||||
|
if (!proxy) throw new Error('Could not decode this image');
|
||||||
|
const size = await jpegInfo(proxy.data);
|
||||||
|
return {
|
||||||
|
jpeg: proxy.data,
|
||||||
|
width: size?.width || proxy.width,
|
||||||
|
height: size?.height || proxy.height,
|
||||||
|
engine: 'sharp',
|
||||||
|
ext: proxy.ext,
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
export async function rawEngine() {
|
export async function rawEngine() {
|
||||||
if (engineState === 'unloaded') {
|
if (engineState === 'unloaded') {
|
||||||
try {
|
try {
|
||||||
@@ -187,10 +220,14 @@ export function extractEmbeddedJpeg(buffer) {
|
|||||||
async function embeddedPreview(buffer) {
|
async function embeddedPreview(buffer) {
|
||||||
if ((await rawEngine()) === 'ready') {
|
if ((await rawEngine()) === 'ready') {
|
||||||
try {
|
try {
|
||||||
const thumb = await rawPool.use(async (lib) => {
|
const thumb = await withTimeout(
|
||||||
|
rawPool.use(async (lib) => {
|
||||||
await lib.open(Buffer.from(buffer), { useCameraWb: true });
|
await lib.open(Buffer.from(buffer), { useCameraWb: true });
|
||||||
return lib.thumbnailData();
|
return lib.thumbnailData();
|
||||||
});
|
}),
|
||||||
|
12000,
|
||||||
|
'LibRaw preview timed out',
|
||||||
|
);
|
||||||
if (thumb?.data && thumb.format === 'jpeg' && thumb.data.length > 4096) {
|
if (thumb?.data && thumb.format === 'jpeg' && thumb.data.length > 4096) {
|
||||||
return Buffer.from(thumb.data);
|
return Buffer.from(thumb.data);
|
||||||
}
|
}
|
||||||
@@ -209,10 +246,10 @@ export async function decodeRaw(buffer) {
|
|||||||
let librawError = null;
|
let librawError = null;
|
||||||
if (looksLikeRaw(buffer)) {
|
if (looksLikeRaw(buffer)) {
|
||||||
try {
|
try {
|
||||||
let frame = await demosaic(buffer, true);
|
let frame = await withTimeout(demosaic(buffer, true), 45000, 'LibRaw timed out on this file');
|
||||||
// No usable matrix (an odd body or older engine): decode the familiar sRGB
|
// No usable matrix (an odd body or older engine): decode the familiar sRGB
|
||||||
// way instead of shipping camera samples nobody can convert.
|
// way instead of shipping camera samples nobody can convert.
|
||||||
if (!frame.rgbCam || !frame.rgb16) frame = await demosaic(buffer, false);
|
if (!frame.rgbCam || !frame.rgb16) frame = await withTimeout(demosaic(buffer, false), 45000, 'LibRaw timed out on this file');
|
||||||
const { width, height, rgbCam } = frame;
|
const { width, height, rgbCam } = frame;
|
||||||
// Both buffers are rewritten in place: `rgb` becomes the sRGB proxy and
|
// Both buffers are rewritten in place: `rgb` becomes the sRGB proxy and
|
||||||
// `rgb16` the camera-native sidecar, sharing one white point.
|
// `rgb16` the camera-native sidecar, sharing one white point.
|
||||||
|
|||||||
@@ -1481,7 +1481,13 @@ export function NavigatorPanel({
|
|||||||
{photo.name}
|
{photo.name}
|
||||||
</div>
|
</div>
|
||||||
<div className="muted small navigator-meta">
|
<div className="muted small navigator-meta">
|
||||||
{photo.raw ? (photo.decode === 'embedded' ? 'Raw · camera preview' : 'Raw · demosaiced') : 'JPEG/PNG'}{' '}
|
{photo.raw
|
||||||
|
? photo.decode === 'embedded'
|
||||||
|
? 'Raw · camera preview'
|
||||||
|
: 'Raw · demosaiced'
|
||||||
|
: photo.decode === 'sharp'
|
||||||
|
? 'TIFF · server JPEG'
|
||||||
|
: 'JPEG/PNG'}{' '}
|
||||||
· {photo.width}×{photo.height}
|
· {photo.width}×{photo.height}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
+2
-2
@@ -23,7 +23,7 @@ export interface SessionUser {
|
|||||||
|
|
||||||
export interface UploadResult {
|
export interface UploadResult {
|
||||||
raw: boolean;
|
raw: boolean;
|
||||||
engine?: 'libraw' | 'embedded';
|
engine?: 'libraw' | 'embedded' | 'sharp';
|
||||||
width?: number;
|
width?: number;
|
||||||
height?: number;
|
height?: number;
|
||||||
mime?: string;
|
mime?: string;
|
||||||
@@ -153,7 +153,7 @@ export function reprocessRawPhoto(
|
|||||||
): Promise<{
|
): Promise<{
|
||||||
width: number;
|
width: number;
|
||||||
height: number;
|
height: number;
|
||||||
engine?: 'libraw' | 'embedded';
|
engine?: 'libraw' | 'embedded' | 'sharp';
|
||||||
note?: string | null;
|
note?: string | null;
|
||||||
previewVersion?: number;
|
previewVersion?: number;
|
||||||
previewUrl?: string;
|
previewUrl?: string;
|
||||||
|
|||||||
+5
-1
@@ -7,7 +7,11 @@ const cache = new Map<string, ImageBitmap>();
|
|||||||
|
|
||||||
/** Where to fetch the original (or raw proxy) when it is not cached on this device. */
|
/** Where to fetch the original (or raw proxy) when it is not cached on this device. */
|
||||||
export function remoteAssetUrl(photo: PhotoRecord): string {
|
export function remoteAssetUrl(photo: PhotoRecord): string {
|
||||||
if (photo.raw) return photo.previewUrl || `/api/photos/${encodeURIComponent(photo.id)}/preview`;
|
// Server-decoded formats (TIFF today) keep a browser-readable JPEG proxy just
|
||||||
|
// like raws; their original cannot be decoded by createImageBitmap.
|
||||||
|
if (photo.raw || photo.decode === 'sharp') {
|
||||||
|
return photo.previewUrl || `/api/photos/${encodeURIComponent(photo.id)}/preview`;
|
||||||
|
}
|
||||||
return `/api/photos/${encodeURIComponent(photo.id)}/original`;
|
return `/api/photos/${encodeURIComponent(photo.id)}/original`;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
+7
-4
@@ -4,7 +4,7 @@ import type { PhotoMeta, PhotoRecord } from '../types';
|
|||||||
import { putAsset, putPhoto } from './db';
|
import { putAsset, putPhoto } from './db';
|
||||||
import { defaultEdits, normalizePhoto } from './edits';
|
import { defaultEdits, normalizePhoto } from './edits';
|
||||||
import { defaultForMeta, loadCameraLensDefaults, type CameraLensDefault } from './lensDefaults';
|
import { defaultForMeta, loadCameraLensDefaults, type CameraLensDefault } from './lensDefaults';
|
||||||
import { isRawFile, RAW_EXTENSIONS } from './raw';
|
import { isRawFile, isTiffFile, RAW_EXTENSIONS } from './raw';
|
||||||
|
|
||||||
export interface ImportProgress {
|
export interface ImportProgress {
|
||||||
done: number;
|
done: number;
|
||||||
@@ -125,6 +125,8 @@ async function importRaw(
|
|||||||
keywords: string[],
|
keywords: string[],
|
||||||
cloud: CloudImport,
|
cloud: CloudImport,
|
||||||
defaults: CameraLensDefault[],
|
defaults: CameraLensDefault[],
|
||||||
|
/** TIFF goes through the same proxy path but is not a raw container. */
|
||||||
|
raw = true,
|
||||||
): Promise<PhotoRecord> {
|
): Promise<PhotoRecord> {
|
||||||
const id = uid();
|
const id = uid();
|
||||||
const upload = await cloud.uploadOriginal(id, file, file.name);
|
const upload = await cloud.uploadOriginal(id, file, file.name);
|
||||||
@@ -158,7 +160,7 @@ async function importRaw(
|
|||||||
keywords,
|
keywords,
|
||||||
edits,
|
edits,
|
||||||
history: [{ label: 'Import', ts: Date.now(), edits }],
|
history: [{ label: 'Import', ts: Date.now(), edits }],
|
||||||
raw: true,
|
raw,
|
||||||
decode: upload.engine,
|
decode: upload.engine,
|
||||||
previewUrl,
|
previewUrl,
|
||||||
});
|
});
|
||||||
@@ -242,9 +244,10 @@ export async function importFiles(
|
|||||||
await mapLimit(images, cloud ? IMPORT_CONCURRENCY : 2, async (file, index) => {
|
await mapLimit(images, cloud ? IMPORT_CONCURRENCY : 2, async (file, index) => {
|
||||||
if (signal?.aborted) return;
|
if (signal?.aborted) return;
|
||||||
try {
|
try {
|
||||||
const photo = isRawFile(file)
|
const viaServer = isRawFile(file) || isTiffFile(file);
|
||||||
|
const photo = viaServer
|
||||||
? cloud
|
? cloud
|
||||||
? await importRaw(file, eventId, keywords, cloud, defaults)
|
? await importRaw(file, eventId, keywords, cloud, defaults, isRawFile(file))
|
||||||
: (() => {
|
: (() => {
|
||||||
throw new Error('Raw files need the Luminary server. Sign in, then import again.');
|
throw new Error('Raw files need the Luminary server. Sign in, then import again.');
|
||||||
})()
|
})()
|
||||||
|
|||||||
+17
-2
@@ -7,12 +7,27 @@ export const RAW_EXTENSIONS = new Set([
|
|||||||
'rw2', 'raw', 'rwl',
|
'rw2', 'raw', 'rwl',
|
||||||
'raf',
|
'raf',
|
||||||
'pef', 'dng',
|
'pef', 'dng',
|
||||||
'srw', '3fr', 'fff', 'iiq', 'x3f', 'erf', 'k25', 'kdc', 'dcr', 'mos', 'mrw', 'mef',
|
'srw', '3fr', 'fff', 'iiq', 'x3f', 'erf', 'k25', 'kdc', 'dcr', 'mos', 'mrw', 'mef', 'sraw',
|
||||||
]);
|
]);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Standard images the browser cannot decode itself. They take the same server
|
||||||
|
* path as raws: the original is stored and the server writes a JPEG proxy.
|
||||||
|
* Chrome and Firefox have no TIFF decoder, so a TIFF left to the browser is a
|
||||||
|
* silent import failure.
|
||||||
|
*/
|
||||||
|
export const SERVER_IMAGE_EXTENSIONS = new Set(['tif', 'tiff']);
|
||||||
|
|
||||||
|
export function isTiffFile(file: File): boolean {
|
||||||
|
const ext = file.name.split('.').pop()?.toLowerCase() ?? '';
|
||||||
|
return SERVER_IMAGE_EXTENSIONS.has(ext);
|
||||||
|
}
|
||||||
|
|
||||||
export function isRawFile(file: File): boolean {
|
export function isRawFile(file: File): boolean {
|
||||||
const ext = file.name.split('.').pop()?.toLowerCase() ?? '';
|
const ext = file.name.split('.').pop()?.toLowerCase() ?? '';
|
||||||
return RAW_EXTENSIONS.has(ext);
|
return RAW_EXTENSIONS.has(ext);
|
||||||
}
|
}
|
||||||
|
|
||||||
export const RAW_ACCEPT = [...RAW_EXTENSIONS].map((e) => `.${e}`).join(',');
|
export const RAW_ACCEPT = [...RAW_EXTENSIONS, ...SERVER_IMAGE_EXTENSIONS]
|
||||||
|
.map((e) => `.${e}`)
|
||||||
|
.join(',');
|
||||||
|
|||||||
+1
-1
@@ -320,7 +320,7 @@ export interface PhotoRecord {
|
|||||||
/** true when the original is a camera raw decoded by the server */
|
/** true when the original is a camera raw decoded by the server */
|
||||||
raw?: boolean;
|
raw?: boolean;
|
||||||
/** how the editable proxy was produced */
|
/** how the editable proxy was produced */
|
||||||
decode?: 'libraw' | 'embedded';
|
decode?: 'libraw' | 'embedded' | 'sharp';
|
||||||
/** server URL for the editable proxy (raw only) */
|
/** server URL for the editable proxy (raw only) */
|
||||||
previewUrl?: string;
|
previewUrl?: string;
|
||||||
/** server URL for the grid thumbnail */
|
/** server URL for the grid thumbnail */
|
||||||
|
|||||||
Reference in New Issue
Block a user