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
  • inkscape inkscape
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 1,529
    • Issues 1,529
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
  • Merge requests 137
    • Merge requests 137
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
    • Test Cases
  • Deployments
    • Deployments
    • Releases
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Code review
    • Insights
    • Issue
    • Repository
  • External wiki
    • External wiki
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Inkscape
  • inkscapeinkscape
  • Merge requests
  • !771

Enhancements for --export-type command line option

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged Patrick Storz requested to merge ede123/inkscape:export_types into master Jul 05, 2019
  • Overview 2
  • Commits 1
  • Pipelines 3
  • Changes 3

Now allows to

  • export multiple types at once, e.g. using --export-type=pdf,png
  • export to different file name(s) when using --export-type by using --export-file option (extension is stripped/added as needed)

Also be more lenient with user-specified file extensions in general: Warn the user, however do not abort export but continue with what we would have expected (and the user likely meant to do)

Some examples:

# export a single input file to two export formats in one command
inkscape --export-type=png,pdf in.svg

# export a single input file to two export formats and rename them in the process (will produce out.png and out.pdf)
inkscape --export-type=png,pdf --export-file=out in.svg

# export two files to two export formats
inkscape --export-type=png,pdf in1.svg in2.svg

# do not error out due to wrong output file's extension but warn the user and write to out.png instead
inkscape --export-type=png --export-file=out.pdf in.svg
Assignee
Assign to
Reviewer
Request review from
Time tracking
Source branch: export_types