tags:

views:

300

answers:

3

I want code for generating sprite in php . Is there any good code suggestion .

+1  A: 

Smart sprites from http://www.tanila.de/smartsprite/index.php is a css sprite generator.

thinktejas
A: 

Have you tried googling for it?

The first google search got me this:

http://www.mummey.org/2008/12/csprites-a-dynamic-css-sprite-generator-in-php5/

AntonioCS
The goal of Stack Overflow is to provide answers. These answers will then be found on Google (and other search engines). If your answer doesn't add value and is only proposing a google search, then you should refrain from posting it.
Gnoupi
@Gnoupi Provide answers when the answers can't be found by a simple google search. Which was not the case for this
AntonioCS
@Gnoupi And my answer did add value. I provided a link that answers his question which is basically the same think thinktejas did. I just added the remark about google
AntonioCS
@AntonioCS - Then why did you write it, then? Keep in mind that SO questions ARE on Google. And often as the first result for a question. Coming from Google and finding an answer which says to find on another search result is silly. If you can't provide a real answer to a question, an answer which actually adds value, then just don't. Please read this from the meta site, on this topic: http://meta.stackoverflow.com/questions/8724/how-to-deal-with-google-questions
Gnoupi
Further example: try searching now for "php sprite generator". This question is already on the first page.
Gnoupi
@Gnoupi Are going in an infinite loop?
AntonioCS
A: 

I know this question is pretty old, but i just wrote up a php script for that exact thing...

I would post the code but the list of country codes would probably get cut off like it was on my blog.

http://vzio.com/php-dynamic-scripting-hypertext-preprocessor/automatically-create-country-flag-sprite-with-php-gd/

jason