Git Product home page Git Product logo

Comments (5)

dcgauld avatar dcgauld commented on July 1, 2024

Hmm, I can't seem to reproduce this, and it doesn't look like you're doing anything wrong. Can you try using * as the pattern and see if that gives you a result?

Also, are there any errors within the console when you run this?

from gulp-responsive-images.

jzp74 avatar jzp74 commented on July 1, 2024

Thanks for your answer. Tried it but same result. No errors in console.

I tried adding

.pipe(using())

before the responsive command. This yields a full list of the files in the images directory which is correct.

If I add after the responsive command (and before the dest command) it yields nothing (but should have yielded all files). This indicates that the problem is somewhere in the responsive command.

from gulp-responsive-images.

jzp74 avatar jzp74 commented on July 1, 2024

Just now stripped my gulpfile.js to the bare minimum to test this plugin and to make sure no other code interferes. No change.

This is now my complete file:

var gulp = require('gulp'),
    responsive = require('gulp-responsive-images');
    using = require('gulp-using');

gulp.task('respo', function () {
    return gulp.src('images/**/*')
        .pipe(responsive({
            '*': [
                { width: 1600, suffix: '-w1600' }
            ]
            }))
        .pipe(using())
        .pipe(gulp.dest('dist/images'));
});

gulp.task('default', function() {
    gulp.start('respo');
});

Moving or removing pipe(using()) has no impact on outcome.

What can I test to help solve this bug?

from gulp-responsive-images.

dcgauld avatar dcgauld commented on July 1, 2024

Did you ever get this sorted out?

A colleague had a similar problem last week and it was down to him not having GraphicsMagick installed (as detailed in the README).

from gulp-responsive-images.

jzp74 avatar jzp74 commented on July 1, 2024

I sort of stopped trying and wrote a bash script instead. Works for me :-)

from gulp-responsive-images.

Related Issues (5)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.