Skip to content

GitLab

  • Menu
Projects Groups Snippets
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
    • Switch to GitLab Next
  • Sign in / Register
  • P plom
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 597
    • Issues 597
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
    • Requirements
  • Merge requests 26
    • Merge requests 26
  • 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
  • plom
  • plom
  • Merge requests
  • !1203

Render to jpeg and keep that if smaller than png

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged Colin Macdonald requested to merge opportunistic_jpeg into main Jan 04, 2022
  • Overview 0
  • Commits 3
  • Pipelines 3
  • Changes 2
On a real-world exam, rendered from larger scanned-produced poor-quality
jpegs-in-pdf, this gives a filesize reduction of about 43MiB -> 15MiB.
Some of that might be wasted effort on jpeg artifacts so the savings are
perhaps less significant with better scans.  But the code takes
whichever is better so shouldn't hurt (except it takes longer).

changelog in commit msg

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