diff --git a/.gitignore b/.gitignore index 98f3e40c..d17ebcd0 100644 --- a/.gitignore +++ b/.gitignore @@ -23,3 +23,7 @@ sqlite.db dist/ release/ out-tsc/ +ffmpeg/ +locale.source.xlf +package-lock.json +test.* diff --git a/README.md b/README.md index 91d2183b..3244de08 100644 --- a/README.md +++ b/README.md @@ -133,6 +133,9 @@ apt-get install build-essential libkrb5-dev gcc g++ ## 3. Feature list + * supported formats: + * images: **jpg, jpeg, jpe, webp, png, gif, svg** + * videos: **mp4, ogg, ogv, webm** * **Rendering directories as it is** * Listing subdirectories recursively * Listing photos in a nice grid layout diff --git a/backend/model/threading/DiskMangerWorker.ts b/backend/model/threading/DiskMangerWorker.ts index 22380e7a..c6e4e668 100644 --- a/backend/model/threading/DiskMangerWorker.ts +++ b/backend/model/threading/DiskMangerWorker.ts @@ -15,14 +15,11 @@ export class DiskMangerWorker { private static readonly SupportedEXT = { photo: [ - '.bmp', '.gif', '.jpeg', '.jpg', '.jpe', '.png', - '.tiff', '.tif', '.webp', - '.ico', - '.tga' + '.svg' ], video: [ '.mp4', diff --git a/backend/routes/GalleryRouter.ts b/backend/routes/GalleryRouter.ts index e1149e21..fdb4c066 100644 --- a/backend/routes/GalleryRouter.ts +++ b/backend/routes/GalleryRouter.ts @@ -36,7 +36,7 @@ export class GalleryRouter { private static addGetImage(app: Express) { - app.get(['/api/gallery/content/:mediaPath(*\.(jpg|bmp|png|gif|jpeg))'], + app.get(['/api/gallery/content/:mediaPath(*\.(jpg|jpeg|jpe|webp|png|gif|svg))'], AuthenticationMWs.authenticate, // TODO: authorize path GalleryMWs.loadFile, @@ -73,7 +73,7 @@ export class GalleryRouter { } private static addGetImageThumbnail(app: Express) { - app.get('/api/gallery/content/:mediaPath(*\.(jpg|bmp|png|gif|jpeg))/thumbnail/:size?', + app.get('/api/gallery/content/:mediaPath(*\.(jpg|jpeg|jpe|webp|png|gif|svg))/thumbnail/:size?', AuthenticationMWs.authenticate, // TODO: authorize path GalleryMWs.loadFile, @@ -93,7 +93,7 @@ export class GalleryRouter { } private static addGetImageIcon(app: Express) { - app.get('/api/gallery/content/:mediaPath(*\.(jpg|bmp|png|gif|jpeg))/icon', + app.get('/api/gallery/content/:mediaPath(*\.(jpg|jpeg|jpe|webp|png|gif|svg))/icon', AuthenticationMWs.authenticate, // TODO: authorize path GalleryMWs.loadFile, diff --git a/docs/index.html b/docs/index.html index d240648e..12cfc801 100644 --- a/docs/index.html +++ b/docs/index.html @@ -16,11 +16,17 @@ + + @@ -30,8 +36,10 @@
-

PiGallery 2

+

+ PiGallery 2 +

+ +
+
+ + Star + + Fork
@@ -142,6 +160,12 @@

All features: