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

gm convert: Unrecognized option (-Infinity) #60

Open
lewispham opened this issue Apr 12, 2017 · 5 comments
Open

gm convert: Unrecognized option (-Infinity) #60

lewispham opened this issue Apr 12, 2017 · 5 comments

Comments

@lewispham
Copy link

I got the error Unrecognized option when I tried to generate sprites with this options:

            nsg({
                src: [
                    this.config.src + `/*.png`,
                ],
                spritePath: this.config.dest + `/sprite.png`,
                stylesheetPath: this.config.cssDest + `/sprite.css`,
                stylesheet: 'css',
                stylesheetOptions: {
                    prefix: 'icon-',
                },
                compositor: 'gm'
            }, function (err) {
                if(err){
                    throw err;
                }
            });```
@selaux
Copy link
Owner

selaux commented Apr 12, 2017

Probably a duplicate of #57. But can you check what arguments are passed to renderSprite of the gm compositor?

@lewispham
Copy link
Author

@selaux How can I check it?

@selaux
Copy link
Owner

selaux commented Apr 14, 2017

Just edit the module in node_modules and put a console log just before the call.

@lewispham
Copy link
Author

Sorry. I can not reproduce this bug. I'll come back when I have it.

@arunprasadr-zz
Copy link

Hey I had the same issue when I was using the default 'vertical' layout while using 'gm' compositor. Switched it to 'packed' and the error disappeared. Hope it helps.

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