clyfish / zerosprites Goto Github PK
View Code? Open in Web Editor NEWZeroSprites is a CSS sprites generator aimed at area minimization using VLSI floorplaning algorithms.
ZeroSprites is a CSS sprites generator aimed at area minimization using VLSI floorplaning algorithms.
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!
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.
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 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!
The online version is down
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.