[TYPO3-core] RFC#15079 Feature: TYPO3 misses an SpriteGenerator

Xavier Perseguers typo3 at perseguers.ch
Sat Aug 7 16:48:37 CEST 2010


Hi,

>>> > - CSS could be even more optimized when all icons of a group do not
>>> have
>>> > the most common size. In such case, let's take a few 128x128 icons,
>>> the
>>> > base class that gives the image to use says 16x16 as size but then
>>> > override in single sprite the height/width to use 128x128. This
>>> could be
>>> > optimized to say 128x128 in the base definition and not override this
>>> > after that.
>>>
>>> if you have an idea how to implement it easy without having a big
>>> refactoring
>>
>> Idea seems not that tricky: instead of having a "global" defaultHeight,
>> defaultWidth, use an array with defaultHeight/Width per subdirectory,
>> that's it!
> The problem is, that the "main tasks" of this one in TYPO3 won't work on
> subdirectories... the SpriteManager will pass an array of icons from
> different extensions, tca and wherever they will "lay around". Please do
> not "rely" on foldersthe sprite Generator is based on an "array of
> files", the "folder reading" is just an wrapper for conveinience since
> TYPO3-(Core)-Developers and Probably some Extensions may use it sometimes.

OK. That was nitpicking anyway as the generator really works as expected 
even with mix sizes of icons.

Xavier


More information about the TYPO3-team-core mailing list