Question #37

Closed
paallaire opened this Issue Feb 22, 2014 · 2 comments

Projects

None yet

2 participants

@paallaire

Is possible not have the width in the name of the file ?

Example:

Image:
main-feature.jpg

Result l have (not good)
main-feature-50.jpg
main-feature-100@2x.jpg

Result ( what l want )
main-feature.jpg
main-feature@2x.jpg

Source:
grunt.initConfig({
responsive_images: {
myTask: {
options: {
units: { percentage: '', pixel: '', multiply: '' },
sizes: [{
name: '',
width: '50%',
aspectRatio: true,
quality: 100
},
{
name: '',
width: '100%',
aspectRatio: true,
quality: 100,
suffix: '@2x'
} ],
},
files: [{
expand: true,
cwd: 'retina/',
src: ['*/.{jpg,gif,png}'],
dest: 'tmp/'
}]
}
},
})

@andismith
Owner

Hi @paallaire,

Do you think the following pull request (#38) would solve this problem for you?

Thanks,
Andi

@andismith andismith added the question label Apr 21, 2014
@andismith
Owner

Closing as 2 years old and this is supported by aforementioned PR.

@andismith andismith closed this Sep 13, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment