krzysztof-o / spritesheet.js

Command-line spritesheet generator supporting Starling / Sparrow, PIXI.js, Easel.js and cocos2d
Other
551 stars 104 forks source link

Scale not working #78

Open hepiyellow opened 3 years ago

hepiyellow commented 3 years ago

I run spritesheet-js --scale 50% [my files] and not scaling is applied.

For any value of scale that i provide, the resulting spritesheet.png and spritesheet.json are the same size.

spritesheet-js version 1.2.6

machinas-achim commented 2 years ago

FWIW, the code specifies that --scale 50%and --fuzz only work if the --trim option is enabled as well.

from [spritesheet.js/lib/generator.js:

exports.trimImages = function (files, options, callback) {
        if (!options.trim) return callback(null);