File size: 808 Bytes
f59fbe2 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 | export const IMAGE_CONFIG = {
maxSizeBytes: 5 * 1024 * 1024,
maxDimension: 4096,
compressThresholdBytes: 5 * 1024 * 1024,
targetCompressedBytes: 2 * 1024 * 1024,
allowedTypes: ["image/png", "image/jpeg", "image/gif", "image/webp", "image/heic", "image/heif"] as const,
} as const;
export const IMAGE_EXTENSIONS = new Set(["png", "jpg", "jpeg", "gif", "webp", "heic", "heif", "svg", "bmp"]);
export const VIDEO_CONFIG = {
maxSizeBytes: 40 * 1024 * 1024,
allowedTypes: ["video/mp4", "video/webm", "video/quicktime"] as const,
} as const;
export const VIDEO_EXTENSIONS = new Set(["mp4", "webm", "mov"]);
export const MEDIA_CONFIG = {
maxCount: 9,
maxTotalBytes: 80 * 1024 * 1024,
} as const;
export const FILE_PICKER_CONFIG = {
maxSearchResults: 30,
maxDisplayLength: 25,
} as const;
|