Self-hosted personal gallery application with online photo management and albums, supporting Live/Motion Photos, EXIF parsing, geolocation recognition, and an explore map.
TypeScript albumsexif-extractiongeocodinglive-photomotion-photophoto-galleryphoto-sharingwebgl-viewer
refactor(exif): remove path based tags extraction
HoshinoSuzumi5a83556c8bf5
diff --git a/server/services/image/exif.ts b/server/services/image/exif.tsindex a96f1d03..6d2619b9 100644--- a/server/services/image/exif.ts+++ b/server/services/image/exif.ts@@ -352,7 +352,6 @@ export const extractPhotoInfo = (let views = 0let tags: string[] = []- const dirPath = path.dirname(s3key)if (exifData?.Subject || exifData?.Keywords) {tags = [...new Set([@@ -366,18 +365,6 @@ export const extractPhotoInfo = (].map((tag) => tag.trim()).filter((tag) => tag.length > 0)- } else if (dirPath && dirPath !== '.' && dirPath !== '/') {- let relativePath = dirPath- relativePath = dirPath.slice('/photos'.length)-- relativePath = relativePath.replaceAll(/^\/+|\/+$/g, '')-- if (relativePath) {- const pathParts = relativePath- .split('/')- .filter((part) => part.trim() !== '')- tags = pathParts.map((part) => part.trim())- }}if (exifData?.DateTimeOriginal) {