A wrapper around FreeImage library.
Really incomplete, only for jpeg/png read/write and processing of raw pixels.
- libfreeimage-dev, at least 3.15.0
- node.js, at least 0.5.9
- nan
A quick Node.JS wrapper around FreeImage
After I installed the FreeImage libs via brew install freeimage
, the node-image build process is still not finding them:
$ npm install node-image
> [email protected] install /Users/natevw/Desktop/Clients/Argyle Tiles/code/node_modules/node-image
> rm -rf build; node-waf configure clean build
Checking for program g++ or c++ : /usr/bin/g++
Checking for program cpp : /usr/bin/cpp
Checking for program ar : /usr/bin/ar
Checking for program ranlib : /usr/bin/ranlib
Checking for g++ : ok
Checking for node path : not found
Checking for node prefix : ok /usr/local/Cellar/node/0.6.19
Checking for static library freeimage : yes
'configure' finished successfully (0.532s)
'clean' finished successfully (0.019s)
Waf: Entering directory `/Users/natevw/Desktop/Clients/Argyle Tiles/code/node_modules/node-image/build'
[1/4] cxx: src/FreeImage.cpp -> build/Release/src/FreeImage_1.o
[2/4] cxx: src/bindings.cpp -> build/Release/src/bindings_1.o
[3/4] cxx: src/Image.cpp -> build/Release/src/Image_1.o
[4/4] cxx_link: build/Release/src/FreeImage_1.o build/Release/src/bindings_1.o build/Release/src/Image_1.o -> build/Release/image.node
i686-apple-darwin11-llvm-g++-4.2: /Users/natevw/code/FreeImage/Dist/libfreeimage.a: No such file or directory
Waf: Leaving directory `/Users/natevw/Desktop/Clients/Argyle Tiles/code/node_modules/node-image/build'
Build failed: -> task failed (err #1):
{task: cxx_link FreeImage_1.o,bindings_1.o,Image_1.o -> image.node}
When building on a Linux system with the latest Debian packages I had to change the sources in binding.gyp
to the same capitalization as the files:
freeimage.cpp
=> FreeImage.cpp
image.cpp
=> Image.cpp
I also had to change the linked library capitalization the other direction:
-lFreeImage
=> -lfreeimage
I'm unsure what the portability issues of these changes are but they are required for Debian at least.
Unless the documentation is incomplete, this library only offers the equivalent of readFileSync calls. This severely limits its usage.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.