You are not logged in.

#1 2023-09-22 14:23:15

dreieck
Member
Registered: 2012-10-08
Posts: 74

How to make xsane save PDF scans JPEG compressed (instead of PNG)?

Ahoj,

when I archive documents, letters, postcards ... I usually just fire up xsane, and let it scan to PDF.

Unfortunately, the images stored within the PDF files which xsane creates seem to be hardcoded to be PNG (even though my scanner (driver) delivers lossy compressed data as I can see artifacts even if I manually save to PNG).

Most of the time, I want to optimise my workflow for "no postprocessing needs", e.g. I want to use xsane and then be done, and I need PDF files most of the time.

Also, most of the time, I want small filesize in conjunction with the "no postprocessing" workflow.

This then would actually require that the image in the PDF is saved as jpeg (even better: jxl).

But I do not find a way to tell xsane to do that.

Does anyone have an idea?

Or does anyone know another GUI scanning frontent which can achieve that, and which also has resolution, colour, scanning source (ADF/ flatbet) settings available as well as preview, automatic increment of file numbers, rotation?

I know, with command line postprocessing after scanning I can achieve that, but that I do not want.

Regards!

Offline

#2 2023-09-23 10:06:23

dreieck
Member
Registered: 2012-10-08
Posts: 74

Re: How to make xsane save PDF scans JPEG compressed (instead of PNG)?

dreieck wrote:

[save PDF scans JPEG compressed] Or does anyone know another GUI scanning frontent which can achieve that

This part of my question I have some answer. 
"skanpage" can do that. I like the xsane GUI more, but skanpage is OK, and maybe after some time I really could like it's workflow :-). I also found another GUI which does that but I forgot because I like the workflow even less than that of skanpage.

The first place question, how to make xsane saving scanned images in PDF in JPEG or JXL compression is still unsolved.

Offline

#3 2023-09-23 10:53:37

progandy
Member
Registered: 2012-05-17
Posts: 5,319

Re: How to make xsane save PDF scans JPEG compressed (instead of PNG)?

(even though my scanner (driver) delivers lossy compressed data as I can see artifacts even if I manually save to PNG)

xsane should have an option to disable the initial compression in the advanced settings, so you might be able to get better quality at the cost of tranfer time from the scanner. https://bugs.launchpad.net/ubuntu/+sour … bug/192176

Here another blog post about the pdf size in xsane, but this has no automatic solution either. https://rohieb.name/blag/post/optimizin … nned-pdfs/

Last edited by progandy (2023-09-23 10:54:01)


| alias CUTF='LANG=en_XX.UTF-8@POSIX ' | alias ENGLISH='LANG=C.UTF-8 ' |

Offline

#4 2023-09-23 13:51:47

dreieck
Member
Registered: 2012-10-08
Posts: 74

Re: How to make xsane save PDF scans JPEG compressed (instead of PNG)?

Ahoj,

progandy wrote:

(even though my scanner (driver) delivers lossy compressed data as I can see artifacts even if I manually save to PNG)

xsane should have an option to disable the initial compression in the advanced settings, so you might be able to get better quality at the cost of tranfer time from the scanner. https://bugs.launchpad.net/ubuntu/+sour … bug/192176

I have set that, and still get jpeg(like) artifacts in PNG scans.

Scanner is a HP 7520 with hplip.

Regards!

Offline

Board footer

Powered by FluxBB