[Typo3-dev] Extended class

Michael Stucki michael at typo3.org
Wed Feb 16 00:22:01 CET 2005


Hello Bernhard,

>> Wouldn't it be much better if we modularize this class as I suggested
>> first? This way your extension will always remain as an XCLASS, and once
>> the modularization is done you'll have to do it all again!
>> 
>> Are you interested to help on that task?
> 
> I don't really understand what you mean by "modularization" ?

What I am thinking of is:
- Collect all operations which are possible using the stdGraphic class

- Let the user decide if he prefers quality over speed, size, etc. and run
  the best program for each operation.

- Write support packages for every program (GD, GIMP, GM, IM4, IM5, IM6,
  netpbm, etc.) and set some useful properties for each action:

  - convert images:
    GIMP: possible=1, speed=6, quality=9, size=7
    GD:   possible=1, speed=2, quality=5, size=6
    IM4:  possible=1, speed=9, quality=8, size=8

  - combine two images (e.g. adding borders)

  - etc.

> Do you think of putting some hook into the function which can execute
> alternate functions instead of ImageMagickExec for example ?

No, I think this should be a complete rewrite of that class. And yes it will
break compatibility for developers but probably not for Typoscript
templates.

Is this useful?

Regards, michael
-- 
Want support? Please read the list rules first: http://typo3.org/1438.0.html




More information about the TYPO3-dev mailing list