[TYPO3-core] RFC#15079 Feature: TYPO3 misses an SpriteGenerator
Steffen Ritter
info at rs-websystems.de
Sat Aug 7 16:38:34 CEST 2010
Am 07.08.2010 16:34, schrieb Xavier Perseguers:
> 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.
More information about the TYPO3-team-core
mailing list