Code Monkey home page Code Monkey logo

tinydrop's Introduction

TinyDrop

Optimize Unity3D Atlases automatically

TinyDrop is a PHP script which use Dropbox API and TinyPNG API to optimize automatically your Unity3D atlases

Installation

  1. upload the project to your Server
  2. go to https://www.dropbox.com/developers/apps and click the Create app button ..* Dropbox API App ..* Files and datastore ..* No ..* Specific file types ..* Images ..* Enter your app name ..* Create app
  3. in the settings tab of the Dropbox app you've got- App key and Secret key
  4. go to https://tinypng.com/developers sign and get you're tinyPNG API key
  5. go to the project file: tinydrop.php
  6. under $config you should set all the data
  7. under $name add the names of the folders where the atlases sits
  8. upload the new tinydrop.php to the server
  9. in your browser go to the root folder of this project (index.php)
  10. you should see authorization request. click on it and you'll be redirect to Dropbox authorize. please do :)
  11. thats it...now you can choose the folders you want to compress

few things to notice:

  • the script was build for the name convention of 2dToollkit, but you can change it easily
  • you can choose the atlas folders you want to compress
  • before the script start the process it checks whether the every specific Dropbox folder actually exist
  • if an atlas have been compressed already by the script, it won't compress him again. you don't want to compress the same atlas few times by mistake.
  • smile :)

Issues:

  • If you've got graphics with gradiant opacity it won't compress well, so you can put all those images in one atlas that will be left alone
  • If you find more issues please let me know...i'll update the docs

tinydrop's People

Contributors

edofrenkel avatar

Stargazers

 avatar

Watchers

James Cloos avatar  avatar dred avatar

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.