Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Completly silent code. No outputs #585

Open
chevalierc opened this issue Oct 6, 2016 · 4 comments
Open

Completly silent code. No outputs #585

chevalierc opened this issue Oct 6, 2016 · 4 comments

Comments

@chevalierc
Copy link

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
Copy link
Author

Im using windows 10 x64

@ejecenteno
Copy link

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

@ejecenteno
Copy link

The following worked for me:

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

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

@paulmelnikow
Copy link

paulmelnikow commented Mar 28, 2017

Possibly related: #548 #256

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants