8000 Issues with Windows convert · Issue #20 · mzucker/noteshrink · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Issues with Windows convert #20
Open
@DACN

Description

@DACN

When you run noteshrink on windows (am using windows 10), noteshrink fails on the subprocress.call to convert:

running PDF command "convert page0000.png output.pdf"...
Invalid Parameter - output.pdf

The reason appears to be given in this stackoverflow question:
https://stackoverflow.com/questions/41860668/why-does-this-python-subprocess-command-only-work-when-shell-true-on-windows

Windows has another old program called convert sitting on my PC in C:\Windows\System32\convert.exe

Possible solutions involve using:
shell=True

OR

changing the command to magick. I note from the current release notes that:

magick
The "magick" command is the new primary command of the Shell API, replacing the old "convert" command. This allows you to create a 'magick script' of the form "#!/path/to/command/magick -script", or pipe options into a command "magick -script -, as abackground process.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0