Enhance Scanned Pages - Image upscale

Forum for the PDF-XChange Editor - Free and Licensed Versions

Moderators: Daniel - PDF-XChange, PDF-XChange Support, Vasyl - PDF-XChange, Chris - PDF-XChange, Sean - PDF-XChange, Paul - PDF-XChange, Ivan - Tracker Software, Stefan - PDF-XChange

Post Reply
Loki@99
User
Posts: 558
Joined: Sat Dec 16, 2023 11:09 am

Enhance Scanned Pages - Image upscale

Post by Loki@99 »

Hi,

It's a feature request.

Feature description
Add an option to upscale images in Enhance Scanned Pages which uses Waifu2x processing.

Issue
The following file scan resolution is a bit low.
File_low resolution.pdf
(3.05 MiB) Downloaded 85 times
I tried to increase its readability with PDFXCE Enhance Scanned Pages > Text Sharpening but results weren't great.
Moreover, it can't handle other images on the page very well.

PDFXCE Results
Enhance Scanned Pages - Text Sharpening : Low
image.png

After some research, I found a way to get pretty good results with the following website powered by an open-source project.
https://waifu2x.booru.pics/ (website is closed now)
https://www.waifu2x.net/


It's specialized for comics and manga so it handles text and images very well.

Below a before and after Waifu2x processing.

Original file
image(1).png

Waifu2x - Noise reduction High - Scale 2X - Style Photo
image(2).png

Maybe the result isn't really obvious on above screenshots so I added results on page two of the file sample.
There is a clear difference when you zoom.

Bellow some useful links

  • https://github.com/nagadomi/waifu2x
  • https://github.com/YukihoAA/waifu2x_snowshell. A GUI for Waifu2x


Thanks for considering this,
Last edited by Loki@99 on Wed Jan 01, 2025 11:46 am, edited 1 time in total.
Major Stylus topics
- RemoveAnnotationsWithEraser T#6903
- MiniPopupMenuOnTextSelection T#6894
- AbnormalSpikes forum.pdf-xchange.com/viewtopic.php?p=179935&hilit=spikes#p179935
- ForceEraserPreview forum.pdf-xchange.com/viewtopic.php?t=42380
User avatar
Stefan - PDF-XChange
Site Admin
Posts: 19795
Joined: Mon Jan 12, 2009 8:07 am
Contact:

Re: Enhance Scanned Pages - Image upscale

Post by Stefan - PDF-XChange »

Hello Loki@99,

While I cant make any promises - I will ask our devs working on this tool to take a look at your suggestion!

Kind regards,
Stefan
User avatar
David.P
User
Posts: 1637
Joined: Thu Feb 28, 2008 8:16 pm

Re: Enhance Scanned Pages - Image upscale

Post by David.P »

Hello all,

I like and support Loki's feature request.

Once the Devs are going to look into it, this related feature request could also be considered.

The suggestion over there is about improving scanned documents—such as those scanned in color or grayscale—when converting them to black and white. The idea is to first increase the original resolution, for example by doubling it, before performing the black-and-white conversion. This would help minimize the loss of detail, particularly sharpness, for example in scanned text or drawings:
David.P wrote: Wed Oct 12, 2022 9:07 am A use case for me is as follows. I often have (scanned) PDF files in e.g. 300 dpi grayscale (or color). But I normally need these [files] in pure black and white. If I simply convert the images directly to black and white, part of the image information, or optical resolution, of the original image is lost. The black and white images then become rather pixelated.

Therefore, it would be useful to, for example, double the resolution of the grayscale images (using "Recompress Images") to 600 dpi first, and then to generate 600 dpi black-and-white images from the upsampled images. When the black-and-white images are then compressed using JBIG, for example, the file size of these high-resolution black-and-white images is still tiny and negligible.
image.png
1st Upscale then convert to B+W.png
Click image to view animation

Thank you for looking into this.

Best regards
David
David.P
PDF-XChange Pro
User avatar
Stefan - PDF-XChange
Site Admin
Posts: 19795
Joined: Mon Jan 12, 2009 8:07 am
Contact:

Re: Enhance Scanned Pages - Image upscale

Post by Stefan - PDF-XChange »

Hello David.P,

Thanks for adding your voice.
The developer who will look into this topic will come to his office in about 3 hours - so he will also see your feedback directly when reading the above discussion.

Kind regards,
Stefan
Loki@99
User
Posts: 558
Joined: Sat Dec 16, 2023 11:09 am

Re: Enhance Scanned Pages - Image upscale

Post by Loki@99 »

Hi,

Any update on this ?
Major Stylus topics
- RemoveAnnotationsWithEraser T#6903
- MiniPopupMenuOnTextSelection T#6894
- AbnormalSpikes forum.pdf-xchange.com/viewtopic.php?p=179935&hilit=spikes#p179935
- ForceEraserPreview forum.pdf-xchange.com/viewtopic.php?t=42380
User avatar
Stefan - PDF-XChange
Site Admin
Posts: 19795
Joined: Mon Jan 12, 2009 8:07 am
Contact:

Re: Enhance Scanned Pages - Image upscale

Post by Stefan - PDF-XChange »

Hello Loki@99,

I will ask my colleagues once again.

Kind regards,
Stefan
Post Reply