Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,7 @@ jobs:
<title>Redirecting...</title>
<script>
(function () {
var target = "https://xtcjs.app" + window.location.pathname + window.location.search + window.location.hash;
window.location.replace(target);
window.location.replace("https://xtcjs.app/");
})();
</script>
</head>
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -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.
4 changes: 2 additions & 2 deletions src/components/ConverterPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ export function ConverterPage({ fileType, notice }: ConverterPageProps) {
const [viewerPages, setViewerPages] = useState<string[]>([])
const [options, setOptions] = useState<ConversionOptions>({
splitMode: 'overlap',
dithering: 'floyd',
contrast: 4,
dithering: fileType === 'pdf' ? 'atkinson' : 'floyd',
contrast: fileType === 'pdf' ? 8 : 4,
margin: 0,
})

Expand Down