Closed yustnip closed 9 years ago
I see some artifacts in the original image which is a JPG but don't see those artifacts in the spritesheet. What happens when you generate a spritesheet with only that 1 image?
P.S. I am going on vacation tomorrow for 2 weeks so I will likely be unresponsive after that. Other things to try: switching spritesmith
engines.
The sprite with from only 1 image: https://yadi.sk/i/JZg6Wrkqihbyg (a quality was reduced)
I'll try to switch engines.
What are the options you are passing to gulp.spritesmith
?
gulp.task('spritesmith', function() {
var spriteData = gulp.src('./images/src/sprite/*.*').pipe(spritesmith({
imgName: 'sprite.png',
cssName: 'sprite.styl',
cssFormat: 'stylus'
}));
spriteData.img.pipe(gulp.dest('./images/')); // путь, куда сохраняем картинку
spriteData.css.pipe(gulp.dest('./styl/helpers/')); // путь, куда сохраняем стили
});
It looks like the issue is being caused by loading from a JPG as the source image. There are a few options:
gmsmith
)for file in
ls; do convert "$file" "$file.png"; done
Resaved images to .png. Now it's OK, thanks! Have a good vacations!
That's great to hear. Thanks I will =)
Awesome :+1:
After
spritesmith
a quality of images is reduced. For example: