The code responsible for encoding pdf is available here:
https://gitlab.gnome.org/GNOME/simple-scan/-/blob/master/src/book.vala#L348

It is comparing jpeg with zlib:
https://gitlab.gnome.org/GNOME/simple-scan/-/blob/master/src/book.vala#L479

How would you like to change it?
What do you think about setting quality to maximum, force zlib compression?

** Changed in: simple-scan (Ubuntu)
       Status: New => Incomplete

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to simple-scan in Ubuntu.
https://bugs.launchpad.net/bugs/1886279

Title:
  simple-scan pdf compression

Status in simple-scan package in Ubuntu:
  Incomplete

Bug description:
  Hello,

  PDF compression cannot appropriately be configured.

  Having taken a look at the latest source code of simple-scan:
  1) simple-scan compresses each image in ZLIB or JPEG depending on the 
compressed size (it keeps the ZLIB version if it is smaller than the JPEG)
  2) the "quality" setting only applies to JPEG

  With this in mind, I think it is impossible to use simple-scan to
  create a PDF full of lossless ZLIB images for archiving documents
  where we want to keep quality at the expense of the size.

  Best regards

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/simple-scan/+bug/1886279/+subscriptions

-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to     : desktop-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to