Skip to content

Commit

Permalink
Merge pull request krzysztof-o#63 from axldns/issue_62_deprecated_tmpdir
Browse files Browse the repository at this point in the history
issue_62: update deprecated tmpDir to tmpdir
  • Loading branch information
gprzybylowicz authored Dec 21, 2017
2 parents 2757c39 + 3b18b17 commit ea90c61
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/generator.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ exports.trimImages = function (files, options, callback) {
async.eachSeries(files, function (file, next) {
file.originalPath = file.path;
i++;
file.path = path.join(os.tmpDir(), 'spritesheet_js_' + uuid + "_" + (new Date()).getTime() + '_image_' + i + '.png');
file.path = path.join(os.tmpdir(), 'spritesheet_js_' + uuid + "_" + (new Date()).getTime() + '_image_' + i + '.png');

var scale = options.scale && (options.scale !== '100%') ? ' -resize ' + options.scale : '';
var fuzz = options.fuzz ? ' -fuzz ' + options.fuzz : '';
Expand Down

0 comments on commit ea90c61

Please sign in to comment.