Moebits / Waifu2x-GUI

An app that upscales anime-styled images, gifs, videos, and pdfs with waifu2x.
Other
289 stars 13 forks source link

pdf upscale not working #18

Closed nvmend closed 7 months ago

nvmend commented 8 months ago

pdf not working, after finish it result in a pdf file of 15kb and says that cant open it

Moebits commented 8 months ago

Does it output the pages and upscale each page?

puff-dayo commented 8 months ago

OS: Windows 11 21H2 x64 Waifu2x-GUI Version: 0.4.7 (latest)

I used a mixed image and text layout pdf file for testing and reproduced the same problem. Attached are the input files and all the files output by Waifu2x-GUI. Test PDF file and output.zip

Thank you for developing, and I'm happy to help with any further testing.

Moebits commented 8 months ago

update to 0.4.8 and tell me if that works

puff-dayo commented 8 months ago

Image

After uninstalling & reinstalling to version 0.4.8, its GUI no longer appears and the folder it is looking for in the %Temp% directory doesn't exist

Moebits commented 8 months ago

Reinstall the same version 0.4.8 again

puff-dayo commented 7 months ago

After uninstalling & reinstalling to version 0.4.8, its GUI no longer appears and the folder it is looking for in the %Temp% directory doesn't exist

The problem seems to be that although I specified the install path to drive E, the installer writes about 1.5GB of temporary data to drive C and then cleans it. If the C drive does not have enough space for the temporary data, subsequent running after installation will report an error.

update to 0.4.8 and tell me if that works

Updated to the latest version and the PDF upscale process seems to be working fine. But the problem now is that the model is reading each page of the PDF (A4 paper size) at 612x792 resolution as input, resulting in a lot of raw information being lost. Hopefully maybe if allowed to manually specify the resolution of the PDF read in would be better.

Thanks a lot. 😊

Moebits commented 7 months ago

Set PDF downscale to 0 to extract each page at the original resolution and turn on PNG frames to extract as a png which is a lossless format. The size in pixels will be inches * dpi, if you saved at a low dpi it will be pretty small.