Skip to content

TagSpaces is an offline, open source, document manager with tagging support

feature: adding support for jif and jfif files #1442

Ilian Sapundshiev9e535a4343b8
diff --git a/app/reducers/settings-default.ts b/app/reducers/settings-default.ts
index f4a08ad5a..11fe5f19b 100644
--- a/app/reducers/settings-default.ts
+++ b/app/reducers/settings-default.ts
@@ -494,6 +494,16 @@ export default {
viewer: '@tagspaces/image-viewer',
color: '#9fd5ba'
},
+ {
+ type: 'jif',
+ viewer: '@tagspaces/image-viewer',
+ color: '#9fd5ba'
+ },
+ {
+ type: 'jfif',
+ viewer: '@tagspaces/image-viewer',
+ color: '#9fd5ba'
+ },
{
type: 'js',
viewer: '@tagspaces/text-editor',
diff --git a/app/services/search.ts b/app/services/search.ts
index ea3f63fba..0f657592b 100644
--- a/app/services/search.ts
+++ b/app/services/search.ts
@@ -32,6 +32,8 @@ export const FileTypeGroups = {
images: [
'jpg',
'jpeg',
+ 'jif',
+ 'jiff',
'png',
'gif',
'bmp',
diff --git a/app/services/thumbsgenerator.ts b/app/services/thumbsgenerator.ts
index c46a60c39..33d1c4352 100644
--- a/app/services/thumbsgenerator.ts
+++ b/app/services/thumbsgenerator.ts
@@ -32,7 +32,17 @@ import { Pro } from '../pro';
const maxSize = AppConfig.maxThumbSize;
const bgColor = AppConfig.thumbBgColor;
-const supportedImgs = ['jpg', 'jpeg', 'png', 'gif', 'svg', 'webp', 'bmp'];
+const supportedImgs = [
+ 'jpg',
+ 'jpeg',
+ 'jif',
+ 'jfif',
+ 'png',
+ 'gif',
+ 'svg',
+ 'webp',
+ 'bmp'
+];
const supportedContainers = [
// 'zip', // disable ZIP tmb generation due to potential performance issues on large files
'epub',