Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Moebits committed Mar 2, 2024
1 parent 6857273 commit 2f4c304
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .npmignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
node_modules
images
assets
models
./models
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "waifu2x",
"version": "1.4.0",
"version": "1.4.1",
"description": "2x upscaling of images with waifu2x",
"main": "dist/waifu2x.js",
"types": "dist/waifu2x.d.ts",
Expand Down
3 changes: 2 additions & 1 deletion start.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ const start = async () => {
const progress = (current: number, total: number) => {
console.log(`${current}/${total}`)
}
const result = await waifu2x.upscalePDF("./images/pdfs/pdf.pdf", "./images/pdfs/pdf2.pdf", {downscaleHeight: 1000})
//const result = await waifu2x.upscalePDF("./images/pdfs/pdf.pdf", "./images/pdfs/pdf2.pdf", {downscaleHeight: 1000})
const result = await waifu2x.upscaleImage("./images/img.png", "./images/upscale/img2x.png", {upscaler: "real-esrgan", scale: 4})
console.log(result)
}
start()

0 comments on commit 2f4c304

Please sign in to comment.