diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index a9887a7..d9569dd 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -34,8 +34,7 @@ jobs: Redirecting... diff --git a/README.md b/README.md index 6f3330e..ab9ae97 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ # xtcjs -based on https://github.com/tazua/cbz2xtc +Official repository of xtcjs - Read manga and PDFs on your XTEink! -Minimal/vibecoded version of a converter from cbz to xtc in js so everyone can use it on browser with no dependencies. +based on https://github.com/tazua/cbz2xtc This project was created using `bun init` in bun v1.3.5. [Bun](https://bun.com) is a fast all-in-one JavaScript runtime. diff --git a/src/components/ConverterPage.tsx b/src/components/ConverterPage.tsx index 43ef860..f03c70e 100644 --- a/src/components/ConverterPage.tsx +++ b/src/components/ConverterPage.tsx @@ -23,8 +23,8 @@ export function ConverterPage({ fileType, notice }: ConverterPageProps) { const [viewerPages, setViewerPages] = useState([]) const [options, setOptions] = useState({ splitMode: 'overlap', - dithering: 'floyd', - contrast: 4, + dithering: fileType === 'pdf' ? 'atkinson' : 'floyd', + contrast: fileType === 'pdf' ? 8 : 4, margin: 0, })