Skip to content

Gulp.spritesmith can't work with images created dynamically #53

Closed
@Finesse

Description

@Finesse

Gulp.spritesmith should open input images from stream but it tries to open them from disk. For example, this:

var spriteData = gulp.src('.src/sprites/somePicture.svg')
    .pipe(svg2png())  // Converts svg image to png and passes to next plugin without saving on disk
    .pipe(spritesmith({
        imgName: 'sprite.png',
        cssName: 'sprite.css'
    }));

Causes error: Error: ENOENT, open './src/sprites/somePicture.png'.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions