5

I recently read an article about Javascript, where Build Tools like Grunt and Ender were mentioned. It was briefly stated, that such tools are capable of generating sprite images from individually provided files and that these build tools can be integrated into the build process.

Unfortunately my google searches didn't unveil more information on this. Does anybody here have experience on this topic and integration into gradle? Some web resources for further reading are highly welcome!

Many thanks in advance! Sascha.

4

2 に答える 2

1

@Windwalker gradle で SmartSprites Maven リポジトリを使用することに興味があるかもしれません。個々の画像を取得し、それを必要な CSS と共に使用してスプライト画像を作成します。

リポジトリの詳細は、http: //mvnrepository.com/artifact/com.carrotsearch/smartsprites/0.2.8にあります。

プロジェクトにインストールするには、gradle コマンドに次の行を追加するだけです。

'com.carrotsearch:smartsprites:0.2.8'

についての完全な詳細

Smart Sprite の Web サイト [ http://csssprites.org/ ] には次のように書かれています。

SmartSprites を使用すると、デザインに CSS スプライトを簡単に導入して維持できます。SmartSprites は、元の CSS に挿入できる特別なディレクティブを解析して、スプライトに変換する個々の画像をマークします。次に、収集した画像からスプライト画像を構築し、必要な CSS プロパティをスタイル シートに自動的に挿入して、個々の画像の代わりにスプライトが使用されるようにします。

これであなたの状況が解決することを願っています。

于 2012-10-10T11:33:31.310 に答える
0
http://csssprites.com/
http://spritegen.website-performance.org/
http://css-sprit.es/

CSS コードとともにスプライトを生成するいくつかのオンライン ツール。

于 2012-10-10T21:19:17.900 に答える