T P,

You are probably right - any such package will have some dependency. But as 
long as I can resolve all dependencies at compile-time, I don't care.
The point is to avoid having binary dependencies which will have to be 
pre-installed by the end-user.
I'm developing a desktop application which uses node-webkit, so I would 
like to ship *one* package that already contains everything.

I'll look into Leptonica. If libjpeg and the others can be statically 
linked to my code, that might be a good solution.
BTW, Boost's GIL 
<http://www.boost.org/doc/libs/1_55_0/libs/gil/doc/index.html> also seems 
like a good candidate, in case any one else is interested. It also needs 
libjpeg, libpng, etc.

Thanks!

On Thursday, June 12, 2014 9:54:25 AM UTC+8, T P wrote:
>
> On Tue, Jun 10, 2014 at 10:33 PM, Eyal Arubas <[email protected] 
> <javascript:>> wrote:
>
>> I was looking for image processing modules which provide basic 
>> functionalities (resize, crop, rotate, etc) without any external 
>> dependencies.
>> I couldn't find any.
>> All modules out there (that I know of) depend on a local installation of 
>> ImageMagick et al.
>>
>> So I started looking into rolling my own module which wraps the CImg 
>> <http://cimg.sourceforge.net/> C++ library. But then I discovered that 
>> it, too, depends on ImageMagick (at least for reading JPEGs).
>>
>> So my questions are:
>>
>>    1. Is there such a module out there?
>>    2. If not, I would like to implement one.
>>    1. Any suggestion about how I should go about it?
>>       2. Which is a good C++ image library without pre-required 
>>       dependencies that I can wrap? 
>>    
>> I considered OpenCV and QT's QImage, but both are quite large, and not 
>> specifically oriented towards basic image processing.
>>
>> I realize that installing ImageMagick on a server isn't that big a deal. 
>> But I want to use the intended module in a node-webkit 
>> <https://github.com/rogerwang/node-webkit/> application (client); and I 
>> don't want to tell my users to install ImageMagick before they can use my 
>> software.
>>
>
> Look into the Leptonica C Image Processing Library [1] [2]. It depends on 
> libtiff, libpng, libjpeg, zlib, and/or gifflib for its image IO. But I bet 
> any such package also does the same thing. Why would they re-invent the 
> wheel?
>  
>
> [1] http://leptonica.org/
>
> [2] http://tpgit.github.io/UnOfficialLeptDocs/index.html
>
>

-- 
Job board: http://jobs.nodejs.org/
New group rules: 
https://gist.github.com/othiym23/9886289#file-moderation-policy-md
Old group rules: 
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
--- 
You received this message because you are subscribed to the Google Groups 
"nodejs" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/nodejs/f9fc2df2-5ae8-412b-afa4-cb5244f2d8b4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to