Closed (fixed)
Project:
CSS Sprite Generator
Version:
5.x-1.x-dev
Component:
Miscellaneous
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
5 Feb 2008 at 16:48 UTC
Updated:
16 Apr 2008 at 03:42 UTC
Jump to comment: Most recent file
Comments
Comment #1
tjholowaychuk commentedUnderstandable :P I hardly have time with my few modules but lately I have been obsessed with 'frontend' performance. I took a brief look at the CSS sprite generator you mentioned above and to be honest it did not work quite as I had hoped! but it will certainly still be a consideration.
I am toying with ideas regarding how to integrate this module average Drupal users and themers, if it simply accepts images and then spits out the sprites image along with background positions then I dont think it would even be very useful being integrated into Drupal at all so I would rather think of other possibilities.
Help would certainly be welcome! I am sure you are more experienced than myself.
I was thinking of possibly parsing through CSS files and all images with small file sizes or dimensions would be queued for sprite generation, after the image is generated the appropriate CSS adjustments to the box model would take place. Then possibly a hook into theme_image(); replacing any that fall under the criteria as CSS sprites.
Something along those lines :P I have yet to consider the repercussion and scenarios of these features
Comment #2
wim leersMy intention was only to use the internals from the CSS sprite generator I was referring to, the UI we can get rid of immediately. This is only one file:
includes/css-sprite-gen.incfrom https://launchpad.net/css-sprite-generator/0.1/0.1a1.Comment #3
tjholowaychuk commentedCertainly, I did not mean the UI, I will take a crack at my ideas and commit some code asap
Comment #4
wim leersOh, ok! Looking forward to your ideas and code :)
Comment #5
tjholowaychuk commentedAfter reviewing the code in written by "http://spritegen.website-performance.org/" I have decided just to roll my own Drupal specific sprite generation code, out of their entire class there was very little that would have been of use, and the portion that was useful is still not quite what I had envisioned. I will keep every posted on the project :)
Comment #6
wim leersPity :(
Btw, I've updated my blog post to include a reference to this project.
Comment #7
tjholowaychuk commentedLittle preview of my progress 3 hours in.
Still many features / issues to deal with such as excluding images that are already acting as sprites in Drupal core, animated gifs, etc.
Comment #8
tjholowaychuk commented