Skip to content

Commit 86cd705

Browse files
committed
New: New image interpolation methods available: lanczos3, lanczos2, mitchell, cubic, nearest and others
1 parent e0bad1b commit 86cd705

37 files changed

+882
-86
lines changed

CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
1313
- Support favorite label [`86039e6`](https://github.com/ollm/OpenComic/commit/86039e6d9f90d77b9671068d520c8bc2fa635f30)
1414
- Custom labels support [`1185d82`](https://github.com/ollm/OpenComic/commit/1185d82790a764e63d1d223362e4b44e203ff0e1)
1515
- Option to not enlarge images more than its original size [`e2f8598`](https://github.com/ollm/OpenComic/commit/e2f85983352529162822576bbb8e7da41cd31f39)
16+
- New image interpolation methods available: lanczos3, lanczos2, mitchell, cubic, nearest and others
1617

1718
##### 🐛 Bug Fixes
1819

languages/ca.json

+9
Original file line numberDiff line numberDiff line change
@@ -181,6 +181,15 @@
181181
"startReadingInFullScreen": "Començar la lectura a pantalla completa",
182182
"trackingAtTheEnd": "Seguiment al final del capítol/tom"
183183
},
184+
"imageInterpolation": {
185+
"main": "Interpolació d'imatge",
186+
"interpolationMethod": "Mètode d'interpolació",
187+
"disabled": "Desactivat",
188+
"downscaling": "Al reduir la resolució de la imatge",
189+
"downscalingDescription": "Aquest mètode només s'utilitzarà quan calgui reduir la resolució de la imatge, el mètode d'interpolació no s'aplica a PDF, EPUB ni a imatges animades",
190+
"upscaling": "A l'augmentar la resolució de la imatge",
191+
"upscalingDescription": "Aquest mètode només s'utilitzarà quan calgui augmentar la resolució de la imatge, el mètode d'interpolació no s'aplica a PDF, EPUB ni a imatges animades. Advertència: Els mètodes Sharp poden ser lents a l'augmentar la resolució"
192+
},
184193
"navigation": {
185194
"main": "Navegación",
186195
"folders": "Navegació (Carpetes)",

languages/cs.json

+9
Original file line numberDiff line numberDiff line change
@@ -181,6 +181,15 @@
181181
"startReadingInFullScreen": "",
182182
"trackingAtTheEnd": ""
183183
},
184+
"imageInterpolation": {
185+
"main": "",
186+
"interpolationMethod": "",
187+
"disabled": "",
188+
"downscaling": "",
189+
"downscalingDescription": "",
190+
"upscaling": "",
191+
"upscalingDescription": ""
192+
},
184193
"navigation": {
185194
"main": "",
186195
"folders": "",

languages/de.json

+9
Original file line numberDiff line numberDiff line change
@@ -181,6 +181,15 @@
181181
"startReadingInFullScreen": "",
182182
"trackingAtTheEnd": ""
183183
},
184+
"imageInterpolation": {
185+
"main": "",
186+
"interpolationMethod": "",
187+
"disabled": "",
188+
"downscaling": "",
189+
"downscalingDescription": "",
190+
"upscaling": "",
191+
"upscalingDescription": ""
192+
},
184193
"navigation": {
185194
"main": "",
186195
"folders": "",

languages/en.json

+9
Original file line numberDiff line numberDiff line change
@@ -181,6 +181,15 @@
181181
"startReadingInFullScreen": "Start reading in full screen",
182182
"trackingAtTheEnd": "Tracking at the end of the chapter/volume"
183183
},
184+
"imageInterpolation": {
185+
"main": "Image interpolation",
186+
"interpolationMethod": "Interpolation method",
187+
"disabled": "Disabled",
188+
"downscaling": "Downscaling an image",
189+
"downscalingDescription": "This method will only be used when the image resolution needs to be reduced, the interpolation method does not apply to PDF and EPUB or animated images",
190+
"upscaling": "Upscaling an image",
191+
"upscalingDescription": "This method will only be used when the image resolution needs to be enlarged, the interpolation method does not apply to PDF, EPUB or animated images. Warning: Sharp methods can be slow on upscaling"
192+
},
184193
"navigation": {
185194
"main": "Navigation",
186195
"folders": "Navigation (Folders)",

languages/es.json

+9
Original file line numberDiff line numberDiff line change
@@ -181,6 +181,15 @@
181181
"startReadingInFullScreen": "Empezar la lectura en pantalla completa",
182182
"trackingAtTheEnd": "Seguimiento al final del capítulo/tomo"
183183
},
184+
"imageInterpolation": {
185+
"main": "Interpolación de imagen",
186+
"interpolationMethod": "Método de interpolación",
187+
"disabled": "Desactivado",
188+
"downscaling": "Al reducir la resolución de la imagen",
189+
"downscalingDescription": "Este método solo se utilizará cuando sea necesario reducir la resolución de la imagen, el método de interpolación no se aplica a PDF, EPUB ni a imágenes animadas",
190+
"upscaling": "Al aumentar la resolución de la imagen",
191+
"upscalingDescription": "Este método solo se utilizará cuando sea necesario aumantar la resolución de la imagen, el método de interpolación no se aplica a PDF, EPUB ni a imágenes animadas. Advertencia: Los métodos Sharp pueden ser lentos al aumentar la resolución"
192+
},
184193
"navigation": {
185194
"main": "Navegación",
186195
"folders": "Navegación (Carpetas)",

languages/fr.json

+9
Original file line numberDiff line numberDiff line change
@@ -181,6 +181,15 @@
181181
"startReadingInFullScreen": "",
182182
"trackingAtTheEnd": ""
183183
},
184+
"imageInterpolation": {
185+
"main": "",
186+
"interpolationMethod": "",
187+
"disabled": "",
188+
"downscaling": "",
189+
"downscalingDescription": "",
190+
"upscaling": "",
191+
"upscalingDescription": ""
192+
},
184193
"navigation": {
185194
"main": "",
186195
"folders": "",

languages/hu.json

+9
Original file line numberDiff line numberDiff line change
@@ -181,6 +181,15 @@
181181
"startReadingInFullScreen": "",
182182
"trackingAtTheEnd": ""
183183
},
184+
"imageInterpolation": {
185+
"main": "",
186+
"interpolationMethod": "",
187+
"disabled": "",
188+
"downscaling": "",
189+
"downscalingDescription": "",
190+
"upscaling": "",
191+
"upscalingDescription": ""
192+
},
184193
"navigation": {
185194
"main": "",
186195
"folders": "",

languages/it.json

+9
Original file line numberDiff line numberDiff line change
@@ -181,6 +181,15 @@
181181
"startReadingInFullScreen": "",
182182
"trackingAtTheEnd": ""
183183
},
184+
"imageInterpolation": {
185+
"main": "",
186+
"interpolationMethod": "",
187+
"disabled": "",
188+
"downscaling": "",
189+
"downscalingDescription": "",
190+
"upscaling": "",
191+
"upscalingDescription": ""
192+
},
184193
"navigation": {
185194
"main": "",
186195
"folders": "",

languages/ja.json

+9
Original file line numberDiff line numberDiff line change
@@ -181,6 +181,15 @@
181181
"startReadingInFullScreen": "",
182182
"trackingAtTheEnd": ""
183183
},
184+
"imageInterpolation": {
185+
"main": "",
186+
"interpolationMethod": "",
187+
"disabled": "",
188+
"downscaling": "",
189+
"downscalingDescription": "",
190+
"upscaling": "",
191+
"upscalingDescription": ""
192+
},
184193
"navigation": {
185194
"main": "",
186195
"folders": "",

languages/pt-br.json

+9
Original file line numberDiff line numberDiff line change
@@ -181,6 +181,15 @@
181181
"startReadingInFullScreen": "",
182182
"trackingAtTheEnd": ""
183183
},
184+
"imageInterpolation": {
185+
"main": "",
186+
"interpolationMethod": "",
187+
"disabled": "",
188+
"downscaling": "",
189+
"downscalingDescription": "",
190+
"upscaling": "",
191+
"upscalingDescription": ""
192+
},
184193
"navigation": {
185194
"main": "",
186195
"folders": "",

languages/ru.json

+9
Original file line numberDiff line numberDiff line change
@@ -181,6 +181,15 @@
181181
"startReadingInFullScreen": "",
182182
"trackingAtTheEnd": ""
183183
},
184+
"imageInterpolation": {
185+
"main": "",
186+
"interpolationMethod": "",
187+
"disabled": "",
188+
"downscaling": "",
189+
"downscalingDescription": "",
190+
"upscaling": "",
191+
"upscalingDescription": ""
192+
},
184193
"navigation": {
185194
"main": "",
186195
"folders": "",

languages/th.json

+10-1
Original file line numberDiff line numberDiff line change
@@ -181,6 +181,15 @@
181181
"startReadingInFullScreen": "เริ่มอ่านแบบเต็มจอ",
182182
"trackingAtTheEnd": "ติดตามส่วนท้ายของตอน/เล่ม"
183183
},
184+
"imageInterpolation": {
185+
"main": "",
186+
"interpolationMethod": "",
187+
"disabled": "",
188+
"downscaling": "",
189+
"downscalingDescription": "",
190+
"upscaling": "",
191+
"upscalingDescription": ""
192+
},
184193
"navigation": {
185194
"main": "การนำทาง",
186195
"folders": "การนำทาง (โฟลเดอร์)",
@@ -345,4 +354,4 @@
345354
}
346355
]
347356
}
348-
}
357+
}

languages/vi.json

+9
Original file line numberDiff line numberDiff line change
@@ -181,6 +181,15 @@
181181
"startReadingInFullScreen": "",
182182
"trackingAtTheEnd": ""
183183
},
184+
"imageInterpolation": {
185+
"main": "",
186+
"interpolationMethod": "",
187+
"disabled": "",
188+
"downscaling": "",
189+
"downscalingDescription": "",
190+
"upscaling": "",
191+
"upscalingDescription": ""
192+
},
184193
"navigation": {
185194
"main": "",
186195
"folders": "",

languages/zh-hans.json

+9
Original file line numberDiff line numberDiff line change
@@ -181,6 +181,15 @@
181181
"startReadingInFullScreen": "开始全屏阅读",
182182
"trackingAtTheEnd": "在章节/卷末尾进行跟踪"
183183
},
184+
"imageInterpolation": {
185+
"main": "",
186+
"interpolationMethod": "",
187+
"disabled": "",
188+
"downscaling": "",
189+
"downscalingDescription": "",
190+
"upscaling": "",
191+
"upscalingDescription": ""
192+
},
184193
"navigation": {
185194
"main": "导航",
186195
"folders": "导航(文件夹)",

languages/zh-hant.json

+9
Original file line numberDiff line numberDiff line change
@@ -181,6 +181,15 @@
181181
"startReadingInFullScreen": "",
182182
"trackingAtTheEnd": ""
183183
},
184+
"imageInterpolation": {
185+
"main": "",
186+
"interpolationMethod": "",
187+
"disabled": "",
188+
"downscaling": "",
189+
"downscalingDescription": "",
190+
"upscaling": "",
191+
"upscalingDescription": ""
192+
},
184193
"navigation": {
185194
"main": "",
186195
"folders": "",

package-lock.json

+13-18
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@
8989
"pdfjs-dist": "^3.11.174",
9090
"sanitize-html": "^2.11.0",
9191
"sha1": "^1.1.1",
92-
"sharp": "^0.30.7",
92+
"sharp": "^0.31.3",
9393
"shosho": "^1.4.3",
9494
"tar-fs": "^3.0.4",
9595
"unzipper": "^0.10.14"

scripts/dom.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -1217,12 +1217,14 @@ function loadSettingsPage(animation = true)
12171217

12181218
generateAppMenu();
12191219

1220+
settings.start();
1221+
12201222
template.loadContentRight('settings.content.right.html', animation);
12211223
template.loadHeader('settings.header.html', animation);
12221224
template.loadGlobalElement('general.elements.menus.html', 'menus');
12231225
floatingActionButton(false);
12241226

1225-
settings.start();
1227+
settings.startSecond();
12261228

12271229
if(readingActive)
12281230
readingActive = false;

0 commit comments

Comments
 (0)