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

Expose gm option to support gm.exe in PowerShell #75

Closed
jasonhargrove opened this issue Sep 5, 2020 · 0 comments
Closed

Expose gm option to support gm.exe in PowerShell #75

jasonhargrove opened this issue Sep 5, 2020 · 0 comments
Assignees
Projects

Comments

@jasonhargrove
Copy link

I work in Linux, Mac, and (ahem) Windows (haha), and happen to be on Windows now. In PowerShell pdf2image throws an error because the gm maps to something else. In PowerShell gm.exe is the command.

For now I have hacked the gm module like this for Windows.

image

GraphicsMagick offers an appPath argument (see screenshot).

import GM from 'gm'
const gm = GM.subClass({appPath: 'C:\\Program Files\\GraphicsMagick-1.3.26-Q8\\'})

via aheckmann/gm#681

It may be something worth supporting in your config.

Unfortunately it won't work in PowerShell without a hack as is. I'm not 100% sure what I'll do as I'm just testing the module. Got it to work now with this hack. Let's see how it goes

@jasonhargrove jasonhargrove changed the title GM.exe in PowerShell Expose gm option to support gm.exe in PowerShell Sep 5, 2020
@yakovmeister yakovmeister self-assigned this Sep 8, 2020
@yakovmeister yakovmeister added this to Backlogs in pdf2image 2 Sep 8, 2020
@yakovmeister yakovmeister moved this from Backlogs to To do in pdf2image 2 Sep 8, 2020
@yakovmeister yakovmeister moved this from To do to In Progress in pdf2image 2 Sep 10, 2020
@yakovmeister yakovmeister moved this from In Progress to Test in pdf2image 2 Sep 12, 2020
@yakovmeister yakovmeister moved this from Test to Done in pdf2image 2 Sep 13, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
No open projects
pdf2image 2
  
Done
Development

No branches or pull requests

2 participants