selaux / node-sprite-generator

Generates image sprites and their spritesheets (css, stylus, sass or less) from sets of images. Supports retina sprites. Provides express middleware and grunt task.
MIT License
192 stars 39 forks source link

sprite image is not generating #51

Closed poonai closed 7 years ago

selaux commented 7 years ago

Some more information please 😉

poonai commented 7 years ago
var nsg = require('node-sprite-generator');

nsg({
    src: [
        '../images/*.png'
    ],
    spritePath: '../sprite.png',
    stylesheetPath: '../sprite.css',
    stylesheet: 'css'
}, function (err) {
    console.log('Sprite generated!');
});

here is my script .the image folder nearly having 700 images .sprite.css is generating but sprite.png is not @selaux

selaux commented 7 years ago

Is there any error? Did you try different compositors?

poonai commented 7 years ago
Error: invalid value (typically too big) for the size of the input (surface, pattern, etc.)
    at Error (native)

i'm getting this error @selaux thanks for your support

selaux commented 7 years ago

Did you check how big the sprite will get, maybe it's getting too big for memory...

poonai commented 7 years ago

ohh no i didn't check that i'll try to make as two separate sprite and let you know Thanks!!