Add Canon CR2 and CR3 support for v0.8

This commit is contained in:
dmo committed 2026-07-25 08:32:24 +02:00
1 parent 8ed5490afc
commit 4e3c442b26
8 files changed
+99 -42

No files matched your search

+3 -1
View File
@@ -124,11 +124,13 @@ function formatType(filename) {
if (extension === 'tif' || extension === 'tiff') return 'TIFF';
if (extension === 'heic' || extension === 'heif' || extension === 'hif') return 'HEIF';
if (extension === 'dng') return 'DNG';
if (extension === 'cr2') return 'CR2';
if (extension === 'cr3') return 'CR3';
return extension.toUpperCase();
}
function requiresServerPreview(photo) {
return photo.format === 'TIFF' || photo.format === 'HEIF' || photo.format === 'DNG';
return ['TIFF', 'HEIF', 'DNG', 'CR2', 'CR3'].includes(photo.format);
}
function isEnabledFilename(filename) {
+1 -1
View File
@@ -5,5 +5,5 @@
"display": "standalone",
"background_color": "#0d1218",
"theme_color": "#121820",
"description": "Edit dates, descriptions, keywords, and locations in JPG, PNG, TIFF, HEIF, and DNG photos."
"description": "Edit dates, descriptions, keywords, and locations in common images, DNG, and Canon RAW photos."
}
+1 -1
View File
@@ -1,4 +1,4 @@
const CACHE_NAME = 'photo-date-editor-v7-1';
const CACHE_NAME = 'photo-date-editor-v8-0';
const SHELL = ['/', '/styles.css', '/app.js', '/manifest.webmanifest', '/vendor/leaflet/leaflet.css', '/vendor/leaflet/leaflet.js'];
self.addEventListener('install', (event) => {