Skip to content

Commit 4962724

Browse files
committed
Fix: eBook not working with decimal device pixel ratio (1.5, 2.5, etc)
1 parent 8a0ba31 commit 4962724

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

CHANGELOG.md

+3-2
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,9 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
1010

1111
##### 🐛 Bug Fixes
1212

13-
- node-zstd not have native dependencies in arm64 build (Linux and macOS)
14-
- Manga mode not working in epub
13+
- node-zstd not have native dependencies in arm64 build (Linux and macOS) [`e906f21`](https://github.com/ollm/OpenComic/commit/e906f212dae36c43d514beda44fba62e5ca26be5)
14+
- Manga mode not working in epub [`a901754`](https://github.com/ollm/OpenComic/commit/a901754a4274687cddbfa3820ca3667b8b80e6ee)
15+
- eBook not working with decimal device pixel ratio (1.5, 2.5, etc)
1516

1617
## [v1.1.0](https://github.com/ollm/OpenComic/releases/tag/v1.1.0) (13-01-2024)
1718

scripts/ebook.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1208,7 +1208,7 @@ async function jobEndedRenderedPage(event, index, pages)
12081208

12091209
let job = renders[index].job;
12101210

1211-
let width = job.config.imageWidth;
1211+
let width = Math.round(job.config.imageWidth);
12121212
let height = Math.round(job.config.imageWidth / job.config.width * job.config.height);
12131213

12141214
renders[index].render.setSize(width, height, false);

0 commit comments

Comments
 (0)