aheckmann / gm

GraphicsMagick for node
http://aheckmann.github.com/gm/
6.96k stars 614 forks source link

Add method to define path to binaries #511

Open positlabs opened 8 years ago

positlabs commented 8 years ago

Say I have a graphicsmagick binary that I want gm to use instead of the command on the path. This would be particularly useful for making totally portable apps that don't depend on the user having graphicsmagick installed already.

This feature would also allow us to use a separate module to manage graphicsmagick binaries for various platforms (not sure if it exists yet), which would make it much easier to build cross-platform apps with something like electron or nw.js

positlabs commented 8 years ago

In addition, we could build binary downloads into this package, using something like BinWrapper

abecks commented 7 years ago

This would be extremely useful for making apps more portable.

ryhinchey commented 7 years ago

Is this the intended use of appPath here?

https://github.com/aheckmann/gm/blob/c6a6c5a18a65e9b9344955a5cf9d7417db25dff3/lib/command.js#L205

positlabs commented 7 years ago

Ahhh looks like it is!

I see it mentioned in history.md, but nowhere else. Would be a welcome addition to the readme.