ad-si / Perspec

Scriptable desktop app to correct the perspective of images
https://feram.gumroad.com/l/perspec
GNU Affero General Public License v3.0
583 stars 32 forks source link

Embed Imagemagick binary #1

Closed ad-si closed 4 years ago

ad-si commented 4 years ago

Possible solutions:

haydenflinner commented 4 years ago

Why not humbly suggest conda install imagemagick? I think you will have a hard time bundling imagemagick for all platforms

ad-si commented 4 years ago

@haydenflinner As far as I can tell, all Python bindings of ImageMagick also depend on a global installation and don't include a binary. 😞

ad-si commented 4 years ago

I played around some more and in the end it was easier as expected. I just had to set 2 environment variables 😅.

setEnv "MAGICK_HOME" (currentDir ++ "/imagemagick")
setEnv "DYLD_LIBRARY_PATH" (currentDir ++ "/imagemagick/lib")

Fixed in 4df8c84.

haydenflinner commented 4 years ago

Sorry, didn't realize you were targeting a mac app and not just a general library, hell I thought the project was in Python lol. But btw, you forgot to check the box on your README todo :-)