-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Provide pre-compiled libvips+deps for OS X #312
Comments
Commit a0e034a adds support for building and using pre-compiled libvips binaries on ARMv6+. This will be included in sharp v0.12.2. |
How about falling back to sips on OS X. Could that be a viable alternative to compiling libvips? |
@lovell I think what @davej means is - could you fallback to using sips instead of vips from sharp in order to support using sharp in electron apps on osx. @davej can you clarify? And that link to sips leads nowhere? Can I find more info on that somewhere else? Thanks! Just to mention - I'm mega interested in making an electron app that can use sharp cross platform under the hood. |
@homerjam Here's the cached man page. I ended up creating my own lib to do cross-platform resizing of images on Electron, not the most performant approach but it works: https://github.com/davej/electron-image-resize |
There's now an experimental packaging script for OS X and commit dac8654 on the I'd very much appreciate it if everyone interested in this feature can test it by running the following on a Mac where vips is not already installed (or has been removed via
npm install lovell/sharp#pencil |
Commit 36bfbde on the |
I get the following error during installation:
npm ERR! git rev-list -n1 osx-binaries: fatal: ambiguous argument 'osx-binaries': unknown revision or path not in the working tree. |
@AlekzZz Please use |
if i use "npm install lovell/sharp#pencil" i had the following errors: |
@digital-flowers Those should be created for you. Are you able to share the full npm install log? |
after trials i have found that this only happened if the project directory has space in it is name, i renamed the folder and it is working now |
so project folder should have no spaces to make this work |
@digital-flowers Thanks, it looks like you ran into nodejs/node-gyp#65 |
exactly thank you :) |
is there any chance to include image magick in this prebuild version? i need it only because of bmp file format. |
@digital-flowers The pre-built binaries only include shared libraries I'm willing to support and *magick is a security nightmare. Please install vips yourself if you need to use extra libraries and take your own precautions if using untrusted images. |
yes i understand thank you |
@digital-flowers Commit da0dc28 on the |
v0.16.0 is now available via npm, providing pre-compiled shared library binaries for OS X. |
#42 provided the infrastructure and initial support for 64-bit Windows and Linux binaries.
We could use Travis' OS X environment + homebrew e.g. https://github.com/lovell/package-libvips-darwin-x64/blob/master/.travis.yml
If we use this approach a shell script is required to update the paths in the .dylib files - this will look something like:
Best bet is to use a first generation Raspberry Pi Model B to compile ARMv6 binaries, possibly via Hypriot.Support for ARMv6+ added in v0.12.2.The text was updated successfully, but these errors were encountered: