Giter Site home page Giter Site logo

zerosprites's People

Stargazers

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

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

zerosprites's Issues

Fails on OSX

Running ./sprite.sh test where ./test is a directory of (more than 8) PNG files on OSX 10.8.4 produces:

awk: can't open file input_btree.txt.info
 source line number 1
awk: can't open file input_btree.txt.info
 source line number 1
awk: can't open file input_btree.txt.info
 source line number 1
convert: invalid argument for option `-geometry': ++ @ error/convert.c/ConvertImageCommand/1624.

Digging into the $tmpdir reveals indeed that input_btree.txt.info does not exist. This is because neither ./blobb nor ./btree can be executed on OSX. I tested on my Ubuntu machine and sure enough the bash script worked. When invoked alone, the blobb binary produced a usage message when passed --help.

I assume that the binaries in this repo were compiled on a Linux machine, so I set out to find the original src so that I could compile them for Darwin. I presume that this BloBB is the one you used in your project. According to the docs, only version 1.0 supports the -fx flag that you use on ./blobb, so I assumed it was the version you compiled into this repo. However, make-ing this version doesn't produce the btree binary (and the tar didn't have a cpp for btree) that your bash script needs.

Are there any plans to include the source of these binaries in the repo so they can be compiled on Linux and OSX? If not, can you point me in the right direction of the implementation of blobb and btree, which you compiled for the repo?

Thanks!

Problem generating css code

When running this on my computer as a command-line tool, sprites.txt isn't generated properly. I only get a list of the file-names and two coordinates, e.g.:

butterfly-48.png 0 0
care-32.png 49 0
cloud_arrow_up-16.png 49 33
date_from.png 0 50
date_to.png 27 50
gps-20-orange.png 66 33
gps-20.png 61 56

the command I run, from the folder where the images are, is:
/home/user/path/to/script/sprites.sh 1 *

Also, there seems to be a problem with the on-line version: If you select to also generate png8, there is no config info, and no css-code is generated.

Error

im getting error

./sprites.sh: line 40: 17642 Killed $RECTPACK -qb0 -i awk '{if(NR!=1){printf ","}printf "%s",$2"x"$3}' input.txt > output_rectpack.txt

thanks!

thanks for making this for the people!

Can you share the source for these bintree/pack scripts of yours? I was hoping to recreate this planning logic in PHP. It seems to work a lot better than the packing logic I've currently got going.

Thanks!

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.