Skip to content

Commit

Permalink
New: New image interpolation methods available: lanczos3, lanczos2, m…
Browse files Browse the repository at this point in the history
…itchell, cubic, nearest and others
  • Loading branch information
ollm committed Dec 26, 2023
1 parent e0bad1b commit 86cd705
Show file tree
Hide file tree
Showing 37 changed files with 882 additions and 86 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
- Support favorite label [`86039e6`](https://github.com/ollm/OpenComic/commit/86039e6d9f90d77b9671068d520c8bc2fa635f30)
- Custom labels support [`1185d82`](https://github.com/ollm/OpenComic/commit/1185d82790a764e63d1d223362e4b44e203ff0e1)
- Option to not enlarge images more than its original size [`e2f8598`](https://github.com/ollm/OpenComic/commit/e2f85983352529162822576bbb8e7da41cd31f39)
- New image interpolation methods available: lanczos3, lanczos2, mitchell, cubic, nearest and others

##### 🐛 Bug Fixes

Expand Down
9 changes: 9 additions & 0 deletions languages/ca.json
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,15 @@
"startReadingInFullScreen": "Començar la lectura a pantalla completa",
"trackingAtTheEnd": "Seguiment al final del capítol/tom"
},
"imageInterpolation": {
"main": "Interpolació d'imatge",
"interpolationMethod": "Mètode d'interpolació",
"disabled": "Desactivat",
"downscaling": "Al reduir la resolució de la imatge",
"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",
"upscaling": "A l'augmentar la resolució de la imatge",
"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ó"
},
"navigation": {
"main": "Navegación",
"folders": "Navegació (Carpetes)",
Expand Down
9 changes: 9 additions & 0 deletions languages/cs.json
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,15 @@
"startReadingInFullScreen": "",
"trackingAtTheEnd": ""
},
"imageInterpolation": {
"main": "",
"interpolationMethod": "",
"disabled": "",
"downscaling": "",
"downscalingDescription": "",
"upscaling": "",
"upscalingDescription": ""
},
"navigation": {
"main": "",
"folders": "",
Expand Down
9 changes: 9 additions & 0 deletions languages/de.json
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,15 @@
"startReadingInFullScreen": "",
"trackingAtTheEnd": ""
},
"imageInterpolation": {
"main": "",
"interpolationMethod": "",
"disabled": "",
"downscaling": "",
"downscalingDescription": "",
"upscaling": "",
"upscalingDescription": ""
},
"navigation": {
"main": "",
"folders": "",
Expand Down
9 changes: 9 additions & 0 deletions languages/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,15 @@
"startReadingInFullScreen": "Start reading in full screen",
"trackingAtTheEnd": "Tracking at the end of the chapter/volume"
},
"imageInterpolation": {
"main": "Image interpolation",
"interpolationMethod": "Interpolation method",
"disabled": "Disabled",
"downscaling": "Downscaling an image",
"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",
"upscaling": "Upscaling an image",
"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"
},
"navigation": {
"main": "Navigation",
"folders": "Navigation (Folders)",
Expand Down
9 changes: 9 additions & 0 deletions languages/es.json
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,15 @@
"startReadingInFullScreen": "Empezar la lectura en pantalla completa",
"trackingAtTheEnd": "Seguimiento al final del capítulo/tomo"
},
"imageInterpolation": {
"main": "Interpolación de imagen",
"interpolationMethod": "Método de interpolación",
"disabled": "Desactivado",
"downscaling": "Al reducir la resolución de la imagen",
"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",
"upscaling": "Al aumentar la resolución de la imagen",
"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"
},
"navigation": {
"main": "Navegación",
"folders": "Navegación (Carpetas)",
Expand Down
9 changes: 9 additions & 0 deletions languages/fr.json
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,15 @@
"startReadingInFullScreen": "",
"trackingAtTheEnd": ""
},
"imageInterpolation": {
"main": "",
"interpolationMethod": "",
"disabled": "",
"downscaling": "",
"downscalingDescription": "",
"upscaling": "",
"upscalingDescription": ""
},
"navigation": {
"main": "",
"folders": "",
Expand Down
9 changes: 9 additions & 0 deletions languages/hu.json
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,15 @@
"startReadingInFullScreen": "",
"trackingAtTheEnd": ""
},
"imageInterpolation": {
"main": "",
"interpolationMethod": "",
"disabled": "",
"downscaling": "",
"downscalingDescription": "",
"upscaling": "",
"upscalingDescription": ""
},
"navigation": {
"main": "",
"folders": "",
Expand Down
9 changes: 9 additions & 0 deletions languages/it.json
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,15 @@
"startReadingInFullScreen": "",
"trackingAtTheEnd": ""
},
"imageInterpolation": {
"main": "",
"interpolationMethod": "",
"disabled": "",
"downscaling": "",
"downscalingDescription": "",
"upscaling": "",
"upscalingDescription": ""
},
"navigation": {
"main": "",
"folders": "",
Expand Down
9 changes: 9 additions & 0 deletions languages/ja.json
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,15 @@
"startReadingInFullScreen": "",
"trackingAtTheEnd": ""
},
"imageInterpolation": {
"main": "",
"interpolationMethod": "",
"disabled": "",
"downscaling": "",
"downscalingDescription": "",
"upscaling": "",
"upscalingDescription": ""
},
"navigation": {
"main": "",
"folders": "",
Expand Down
9 changes: 9 additions & 0 deletions languages/pt-br.json
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,15 @@
"startReadingInFullScreen": "",
"trackingAtTheEnd": ""
},
"imageInterpolation": {
"main": "",
"interpolationMethod": "",
"disabled": "",
"downscaling": "",
"downscalingDescription": "",
"upscaling": "",
"upscalingDescription": ""
},
"navigation": {
"main": "",
"folders": "",
Expand Down
9 changes: 9 additions & 0 deletions languages/ru.json
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,15 @@
"startReadingInFullScreen": "",
"trackingAtTheEnd": ""
},
"imageInterpolation": {
"main": "",
"interpolationMethod": "",
"disabled": "",
"downscaling": "",
"downscalingDescription": "",
"upscaling": "",
"upscalingDescription": ""
},
"navigation": {
"main": "",
"folders": "",
Expand Down
11 changes: 10 additions & 1 deletion languages/th.json
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,15 @@
"startReadingInFullScreen": "เริ่มอ่านแบบเต็มจอ",
"trackingAtTheEnd": "ติดตามส่วนท้ายของตอน/เล่ม"
},
"imageInterpolation": {
"main": "",
"interpolationMethod": "",
"disabled": "",
"downscaling": "",
"downscalingDescription": "",
"upscaling": "",
"upscalingDescription": ""
},
"navigation": {
"main": "การนำทาง",
"folders": "การนำทาง (โฟลเดอร์)",
Expand Down Expand Up @@ -345,4 +354,4 @@
}
]
}
}
}
9 changes: 9 additions & 0 deletions languages/vi.json
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,15 @@
"startReadingInFullScreen": "",
"trackingAtTheEnd": ""
},
"imageInterpolation": {
"main": "",
"interpolationMethod": "",
"disabled": "",
"downscaling": "",
"downscalingDescription": "",
"upscaling": "",
"upscalingDescription": ""
},
"navigation": {
"main": "",
"folders": "",
Expand Down
9 changes: 9 additions & 0 deletions languages/zh-hans.json
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,15 @@
"startReadingInFullScreen": "开始全屏阅读",
"trackingAtTheEnd": "在章节/卷末尾进行跟踪"
},
"imageInterpolation": {
"main": "",
"interpolationMethod": "",
"disabled": "",
"downscaling": "",
"downscalingDescription": "",
"upscaling": "",
"upscalingDescription": ""
},
"navigation": {
"main": "导航",
"folders": "导航(文件夹)",
Expand Down
9 changes: 9 additions & 0 deletions languages/zh-hant.json
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,15 @@
"startReadingInFullScreen": "",
"trackingAtTheEnd": ""
},
"imageInterpolation": {
"main": "",
"interpolationMethod": "",
"disabled": "",
"downscaling": "",
"downscalingDescription": "",
"upscaling": "",
"upscalingDescription": ""
},
"navigation": {
"main": "",
"folders": "",
Expand Down
31 changes: 13 additions & 18 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@
"pdfjs-dist": "^3.11.174",
"sanitize-html": "^2.11.0",
"sha1": "^1.1.1",
"sharp": "^0.30.7",
"sharp": "^0.31.3",
"shosho": "^1.4.3",
"tar-fs": "^3.0.4",
"unzipper": "^0.10.14"
Expand Down
4 changes: 3 additions & 1 deletion scripts/dom.js
Original file line number Diff line number Diff line change
Expand Up @@ -1217,12 +1217,14 @@ function loadSettingsPage(animation = true)

generateAppMenu();

settings.start();

template.loadContentRight('settings.content.right.html', animation);
template.loadHeader('settings.header.html', animation);
template.loadGlobalElement('general.elements.menus.html', 'menus');
floatingActionButton(false);

settings.start();
settings.startSecond();

if(readingActive)
readingActive = false;
Expand Down

0 comments on commit 86cd705

Please sign in to comment.