https://github.com/odrick/gulp-free-tex-packer
Gulp free texture packer module
https://github.com/odrick/gulp-free-tex-packer
atlas gulp gulpjs gulpplugin phaser pixi sprites spritesheet texture-packer texturepacker
Last synced: 3 months ago
JSON representation
Gulp free texture packer module
- Host: GitHub
- URL: https://github.com/odrick/gulp-free-tex-packer
- Owner: odrick
- License: mit
- Created: 2018-02-22T21:51:47.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2021-04-28T19:09:47.000Z (about 4 years ago)
- Last Synced: 2025-01-31T20:19:14.142Z (3 months ago)
- Topics: atlas, gulp, gulpjs, gulpplugin, phaser, pixi, sprites, spritesheet, texture-packer, texturepacker
- Language: JavaScript
- Homepage: http://free-tex-packer.com/gulp/
- Size: 53.7 KB
- Stars: 11
- Watchers: 1
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# gulp-free-tex-packer
[](https://www.npmjs.com/package/gulp-free-tex-packer) \
Free texture packer module for gulp \
Based on https://github.com/odrick/free-tex-packer# Install
$ npm install gulp-free-tex-packer
# Basic usage
```js
let texturePacker = require('gulp-free-tex-packer');gulp.task('pack', function() {
return gulp.src('src/**/*.*')
.pipe(texturePacker())
.pipe(gulp.dest('dest/'));
});
```# Advanced usage
Use packer options object
```js
let texturePacker = require('gulp-free-tex-packer');gulp.task('pack', function() {
return gulp.src('src/**/*.*')
.pipe(texturePacker({
textureName: "my-texture",
width: 1024,
height: 1024,
fixedSize: false,
padding: 2,
allowRotation: true,
detectIdentical: true,
allowTrim: true,
exporter: "Pixi",
removeFileExtension: true,
prependFolderName: true
}))
.pipe(gulp.dest('dest/'));
});
```**Pack options description**: https://github.com/odrick/free-tex-packer-core#available-options
**Custom exporters description**: https://github.com/odrick/free-tex-packer-core#custom-exporter
# Used libs
* **Free texture packer core** - https://github.com/odrick/free-tex-packer-core
---
License: MIT