aheckmann / gm

GraphicsMagick for node
http://aheckmann.github.com/gm/
6.95k stars 614 forks source link

Completly silent code. No outputs #585

Open chevalierc opened 8 years ago

chevalierc commented 8 years ago

Hey,

I have installed the gui IM and GM on my machine to test this package. I am testing it with this code:

var input = 'C:/working/input.png'
    gm( 200, 400, "#ddff99f3" )
        .drawText( 10, 50, "from scratch" )
        .write( 'C:/working/output1.png', function ( err ) {
            console.log( "godamn" )
        } );
    gm( input )
        .identify( function ( err, data ) {
            if ( !err ) console.log( data )
            console.log( 'data:', data )
        } );
    gm( input )
        .noProfile()
        .resize( 240, 240 )
        .write( 'c:working/output.png', function ( err ) {
            if ( !err ) console.log( err );
            console.log(' i did?')
        } );

It is completely silent tho. All the callbacks fire but the data and err's are null/empty objects. Tried with both gm and im.

Is there any configuring on the machines environment I must do?

chevalierc commented 8 years ago

Im using windows 10 x64

ejecenteno commented 7 years ago

I'm encountering the same problem. May I confirm if there is already a solution for this? Thanks!

ejecenteno commented 7 years ago

The following worked for me:

var gm = require('gm').subClass({imageMagick: true});

given image magick is properly installed and PATH is properly configured.

paulmelnikow commented 7 years ago

Possibly related: #548 #256