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

Custom destination does not use suffix #117

Open
franz-josef-kaiser opened this issue Jul 20, 2016 · 0 comments
Open

Custom destination does not use suffix #117

franz-josef-kaiser opened this issue Jul 20, 2016 · 0 comments
Labels

Comments

@franz-josef-kaiser
Copy link

Expected Behaviour

With two tasks, both sharing the same name (to have the same destination directory), the image should get saved twice: Once without suffix (retaining the original name) and second time with the suffix.

Actual Behaviour

The image only gets saved once.

Steps to Reproduce

Take below configuration

PC/Mac and Graphics Engine used

OS X 10.11.5
GraphicsMagick 1.3.23 2015-11-07 Q16
ImageMagick 6.9.3-6 Q16 x86_64 2016-02-28

Grunt Configuration

resize : {
    options : {
        engine       : 'im',
        separator    : '_',
        newFilesOnly : false,
        sizes        : [
            {
                name    : 'large',
                width   : 1024,
                density : 72,
                quality : 80
            },
            {
                name    : 'large',
                width   : 1024,
                density : 144,
                suffix  : '_x2',
                quality : 60
            }
        ]
    },
    files : [ {
        expand      : true,
        src         : [ '*.{jpg,jpeg}' ],
        cwd         : 'dev/images/',
        //dest        : '.cache/'
        custom_dest : '.cache/{%= name %}/'
    } ]
}
@andismith andismith added the bug label Sep 13, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants