Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issues with Windows convert #20

Open
DACN opened this issue Jan 19, 2018 · 1 comment
Open

Issues with Windows convert #20

DACN opened this issue Jan 19, 2018 · 1 comment

Comments

@DACN
Copy link

DACN commented Jan 19, 2018

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.

@DiegoFaFe
Copy link

Same as #29 , workaround on #15 , solved by #30

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants