Feature request

10 views
Skip to first unread message

Chupa

unread,
Jun 6, 2009, 5:43:23 AM6/6/09
to SmartSprites CSS Sprite Generator Users and Developers
Hello, Stanislaw.

I'm using smartsprites and it's nice lib. But there is is two missing
features, i think.

First. Sometime i don't want to process all css files under my root-
dir. Is it possible to get NOT all files, but predefined list of
files. Describe it list in properties or get this list form other
properties file. Why i need this? On my current job i have central
repository for css files. We store there all files for all projects (>
4). When we develop project, we checkout full repository and merge
some (needed) files with JAWR. This list described in JAWR properties
file. And i want to get it files and process only it.

Second. There is a small trouble using sprites in WebKit (http://css-
tricks.com/examples/CSS-Sprites/Example2After/default.htm). Try to
resize text. Vertical or horisontal sprite is not solution. Solution
is to make sprite like stairs. Check this: http://i.webo.in/auto.sprites.png

I'm front-end developer and newbie to Java. If you tell me how to
resolve first problem, it would be good. I'm found a piece of code,
that get all files in rootdir based on extension. How to change it to
get files based on file name?

That all, waiting for reply.

Stanislaw Osinski

unread,
Jun 6, 2009, 4:49:56 PM6/6/09
to SmartSprites CSS Sprite Generator Users and Developers
Hi Chupa,

Welcome to the SmartSprites discussion group!

> First. Sometime i don't want to process all css files under my root-
> dir. Is it possible to get NOT all files, but predefined list of
> files. Describe it list in properties or get this list form other
> properties file. Why i need this? On my current job i have central
> repository for css files. We store there all files for all projects (>
> 4). When we develop project, we checkout full repository and merge
> some (needed) files with JAWR. This list described in JAWR properties
> file. And i want to get it files and process only it.

That's a good idea! I've added some more detailed specs for this
improvement here:

http://issues.carrot2.org/browse/SMARTSPRITES-37

Meanwhile, you may want to create a simple script that would copy the
CSS files you want to process and the referenced images to some
temporary location, run SmartSprites and copy back the sprites and
sprited CSS to the original location.

> Second. There is a small trouble using sprites in WebKit (http://css-
> tricks.com/examples/CSS-Sprites/Example2After/default.htm). Try to
> resize text. Vertical or horisontal sprite is not solution. Solution
> is to make sprite like stairs. Check this:http://i.webo.in/auto.sprites.png

That's interesting. I've tested that Safari 3 on windows indeed has
the problem you described, Safari 4 beta seems to be ok. I didn't
check Chrome though. In general, it would very much make sense to
introduce some support for isolating individual images within the
sprite. I've put some more detailed specs here:

http://issues.carrot2.org/browse/SMARTSPRITES-38

I'll be on holiday until the end of next week, when I'm back, I'll try
to take a look at SMARTSPRITES-37.

Cheers,

S

Chupa

unread,
Jun 7, 2009, 6:39:16 AM6/7/09
to SmartSprites CSS Sprite Generator Users and Developers
Ok, thanks.

This is screenshot of webkit with larger font size:
http://www.quicksnapper.com/files/668/17028817444A2B9891145AA_m.png

And i have one more question. Is it possible to rewrite original file,
not create new with suffix?

Stanislaw Osinski

unread,
Jun 7, 2009, 2:24:09 PM6/7/09
to SmartSprites CSS Sprite Generator Users and Developers
> Second. There is a small trouble using sprites in WebKit (http://css-
> tricks.com/examples/CSS-Sprites/Example2After/default.htm). Try to
> resize text. Vertical or horisontal sprite is not solution. Solution
> is to make sprite like stairs. Check this:http://i.webo.in/auto.sprites.png

That's interesting. I've tested that Safari 3 on windows indeed has
the problem you described, Safari 4 beta seems to be ok. I didn't
check Chrome though. In general, it would very much make sense to
introduce some support for isolating individual images within the
sprite. I've put some more detailed specs here:

http://issues.carrot2.org/browse/SMARTSPRITES-38

Oh, one thing I forgot to mention: a workaround for the Safari problem with current SmartSprites would be to add big enough top/bottom margins to the sprites that show through (see sprite-margin-* directives). It's not perfect, but should work for now.

Cheers,

S.

Stanislaw Osinski

unread,
Jun 7, 2009, 2:31:54 PM6/7/09
to smartsprites-css...@googlegroups.com
This is screenshot of webkit with larger font size:
http://www.quicksnapper.com/files/668/17028817444A2B9891145AA_m.png

Yes, this is what I've reproduced with Safari 3 as well. Please see my other response for a temporary workaround.
 
And i have one more question. Is it possible to rewrite original file,
not create new with suffix?

Currently you can't I'm afraid. I've bumped the priority of the relevant feature request:

http://issues.carrot2.org/browse/SMARTSPRITES-2

I hope I can get it done soon.

S.


Reply all
Reply to author
Forward
0 new messages