Skip to content

GitLab

  • Menu
Projects Groups Snippets
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in
  • E exam-scan
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 3
    • Issues 3
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
    • Requirements
  • Merge requests 0
    • Merge requests 0
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
    • Test Cases
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages & Registries
    • Packages & Registries
    • Package Registry
    • Container Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Code review
    • Insights
    • Issue
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • RWTHmoodle
  • exam-scan
  • Merge requests
  • !29

Add JPEG compression of watermarked PDF pages

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged Christian Rohlfing requested to merge rohlfing_add_jpeg_compression into master Apr 22, 2021
  • Overview 0
  • Commits 2
  • Changes 8

While comparing watermark.sh to the Python version, I found out that the PDFs after watermarking have significantly bigger file sizes when using the Python script (watermarking 50 PDFs with each 16 pages, the Bash script 81MB and the Python version 180MB). In the Bash script, we allowed for both rastering PDF pages to images with an DPI-parameter and saving the watermarked images back as pdf with both DPI and JPEG quality parameter. I suggest to give the user the opportunity to enable JPEG compression here as well.

Assignee
Assign to
Reviewer
Request review from
Time tracking
Source branch: rohlfing_add_jpeg_compression