Skip to content

default config for weasyprint uses deprecated --optimize-size #2966

@jjkrone

Description

@jjkrone

weasyprint has deprecated the --optimize-size option, see: https://github.com/Kozea/WeasyPrint/blob/00dda6a284bd88be7ecf10d409ca3456b52f47e3/docs/changelog.rst#L993

The default config still includes it as reference:

"--optimize-size"

Should be changed to

        weasyprint {
          command = {
            program = "weasyprint"
            args = [
              "--optimize-images",
              "--encoding", "{{encoding}}",
              "-",
              "{{outfile}}"
            ]
            timeout = "2 minutes"
          }
          working-dir = ${java.io.tmpdir}"/docspell-weasyprint"
        }

or something similar

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working or in unexpected ways

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions