Giter Site home page Giter Site logo

node-image's Introduction

node-image

A wrapper around FreeImage library.

Really incomplete, only for jpeg/png read/write and processing of raw pixels.

Requirements

  • libfreeimage-dev, at least 3.15.0
  • node.js, at least 0.5.9
  • nan

node-image's People

Contributors

davidlehn avatar maratyszcza avatar mikeseven avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

node-image's Issues

Won't build on Mac OS X

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}

Debian/Linux capitalization build issues.

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.