Coder Social home page Coder Social logo

yeoji / spritesheet-cutter Goto Github PK

View Code? Open in Web Editor NEW
23.0 1.0 5.0 1.5 MB

Cut individual sprites out of spritesheets and export them to PNG right from your browser

Home Page: https://yeoji.github.io/spritesheet-cutter/

HTML 2.14% SCSS 21.74% JavaScript 76.12%
spritesheet spritesheet-cutter sprites

spritesheet-cutter's Introduction

Spritesheet Cutter

This project uses Sprite Cow as a base for sprite selection. It is extended with spritesheet cutting and export features.

Development

yarn install
yarn dev

Go to http://localhost:1234

Usage

Background Selection

Select the background colour of your sprite sheet so that trimming works as expected.

Exporting a Single Sprite

Click on a sprite, check the preview and click export. A .png file will be downloaded.

Exporting Multiple Sprites

Click on a sprite, hold shift to select another sprite, and another, and another. Click export. A .zip file will be downloaded.

Todo

  • Export individual selected sprites as PNG
  • Preview panel for selected sprite
  • Zoom in/out

Ideas

  • Right-click to export
  • Shift to select multiple sprites and export all
  • Adjustable rectangle after selection
  • Grid-based slicing
  • Auto select and export all

spritesheet-cutter's People

Contributors

yeoji avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

spritesheet-cutter's Issues

Cannot Select Multiple Sprites

I use this spritesheet. It lets me select a single sprite. But after selecting one, I cannot select more sprites by holding shift. Am I missing something? I think it would be much better to have an Export All button.

CDE_rockstomp

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.