pkrumins / node-jpeg

A nodejs C++ module that given a buffer with RGB or RGBA values creates a JPEG image in memory.
http://www.catonmat.net
64 stars 26 forks source link

Does node-jpeg need the node_buffer.h from 0.2.*? #4

Closed jim68000 closed 13 years ago

jim68000 commented 13 years ago

Hi, I'm trying to install image-jpeg on my node-0.3.5 system. I'm running into the problem that others have seen with:

../src/fixed_jpeg_stack.cpp:291: error: ‘class node::Buffer’ has no member named ‘data’

Looking at the source for node_buffer.h in 0.3.5 it appears there's no data() member, but there is one for 0.2.5.

UPDATE: OK, comparing against node-png, I can see this is definitely the issue. Trying to work out how to add the buffer-compat stuff to node-jpeg.

Is this correct?

pkrumins commented 13 years ago

Yep, Node 3 has different API from Node 2. And only node-png has been upgraded to work with Node 2.

mattsawyer77 commented 13 years ago

Throwing my vote in here for the fix. I'm having the same issue on node 0.4.

pkrumins commented 13 years ago

sorry, no time to fix it.