You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if I specify a padding for Spritesmith in the spritesmithOptions config, the generated normal sprite image is correct, but the retina sprite gets the same padding. It should get double padding.
gulp-spritesmith does it correctly:
// Prepare spritesmith parameters
var spritesmithParams = {
engine: params.engine,
algorithm: params.algorithm,
padding: params.padding || 0,
algorithmOpts: params.algorithmOpts || {},
engineOpts: params.engineOpts || {},
exportOpts: imgOpts
};
var that = this;
// Construct our spritesmiths
var spritesmith = new Spritesmith(spritesmithParams);
var retinaSpritesmithParams;
var retinaSpritesmith;
if (retinaImages) {
retinaSpritesmithParams = _.defaults({
padding: spritesmithParams.padding * 2 <========= HERE ;)
}, spritesmithParams);
retinaSpritesmith = new Spritesmith(retinaSpritesmithParams);
}
Something could be done I guess in function getSpritesmithConfig(field) in compileRetina.js
Thanks.
The text was updated successfully, but these errors were encountered:
Hello
if I specify a padding for Spritesmith in the
spritesmithOptions
config, the generated normal sprite image is correct, but the retina sprite gets the same padding. It should get double padding.gulp-spritesmith does it correctly:
Something could be done I guess in
function getSpritesmithConfig(field)
incompileRetina.js
Thanks.
The text was updated successfully, but these errors were encountered: