[TYPO3-dev] CropScale in imgResource (correcture)

Stefan Geith typo3dev at geithware.de
Sat Jan 14 15:24:37 CET 2006


-100% now means: lower the 25px top-cropping by 100% giving 0%
       and add the 100% of 25px to the bottom-cropping giving 50%
-50% now means: lower the 25px top-cropping by 50% giving 12.5px
       and add this to the bottom giving 27.5px

Sorry, meant this:

-100% now means: lower the 25px top-cropping by 100% giving _0px_
       and add the 100% of 25px to the bottom-cropping giving _50px_
-50% now means: lower the 25px top-cropping by 50% giving 12.5px
       and add this to the bottom giving 27.5px


Imagine you have the 400x380px, you have to cut 90px, that
is (if centered) 45px at the top and 45px at the bottom.
-50% now means: lower the 45px top-cropping by 50% giving 22.5px
       and add this to the bottom giving 67.5px

> 
> Where goes it wrong in my calculation?
> 
Is it now clearer ?

-

Stefan




More information about the TYPO3-dev mailing list