[TYPO3-core] RFC: feature #2675

Michael Stucki michael at typo3.org
Mon Apr 17 01:02:31 CEST 2006


Hi Wolfgang,

this is finally done:

>  On Mon, 27 Feb 2006, Wolfgang Klinger wrote the following:
>>  Cropscale for imgResources
>>  BT reference: http://bugs.typo3.org/view.php?id=2675
> 
>  Documentation (by Stefan Geith):
> 
> -------
> Changes of Descriptions in TSref, Funtions->imgResource
> 
> Change 'width' from
>         If both the width and heigth is set and one of the numbers has an
>         "m" after it, the proportions will be preserved and thus
>         width/height will work as max-dimensions for the image.
> 
> 
> Change 'width' to
>         If both the width and heigth is set and one of the numbers has an
>         "m" after it, the proportions will be preserved and thus
>         width/height will work as max-dimensions for the image - image
>         will be scaled to fit into width/height rectangle.
> 
>         If both the width and heigth is set and at least one of the
>         numbers has a "c" after it, cropscaling will be enabled; that
>         means the proportions will be preserved and the image will be
>         scaled to fit around a rectangle with width/height dimensions.
>         Then, a centered portion of the image (size defined by
>         width/height) will be cut out. The "c" can have a percentage (-100
>         ... 100) after it, which defines how much the cropping will be
>         moved off the center to the border. Example This crops 120x80px
>         from the center of the scaled image: .width = 120c
>         .height = 80c
>         This crops 100x100px; from landscape-images  at the left and
>         portrait-images centered: .width = 100c-100
>         .height = 100c
>         This crops 100x100px; from landscape-images at the left and
>         portrait-images at the top: .width = 100c-100
>         .height = 100c-100
>         This crops 100x100px; from landscape-images a bit right of the
>         center and portrait-images a bit upper than centered: .width =
>         100c+30 .height = 100c-25
> 
> Change 'height' to
>         See width
> 
> --------
>  I would like to add a little diagram that says more than thousand words
>  if that's possible (will have to prepare that first though)?

You can do so if you think it makes sense. Please send me the image in a
size which is ready to be copied into TSref.

Regards, michael
-- 
Use a newsreader! Check out
http://typo3.org/community/mailing-lists/use-a-news-reader/



More information about the TYPO3-team-core mailing list