[TYPO3-dev] CropScale in imgResource

Daniel Doesburg [netcreators] typo3 at doesburg.biz
Sat Jan 14 11:06:30 CET 2006


Stefan Geith schreef:
> What is confusing with
>   cropH: -100=left, 0=center, 100=right
>   cropV: -100=top,  0=center, 100=bottom

It's confusing.

You also wrote:
Example:
Imagesize = 400x300px
width/height = 200c x 100c
Scaled Image is 200x150px
- CropH now doesn't matter, because the width is already 200px
- Set CropV to 0 to cut 25px at the top and 25px at the bottom
- Set CropV to -50 to cut 12px at the top and 38px at the bottom



It should be a % from the scaled but not croped.
So I would think 50px from 150 = 33,33333%
So both sides 16,66666%. But in your example you say 25%

What is the reason of my confusion?

Where goes it wrong in my calculation?


Regards,

Daniel






More information about the TYPO3-dev mailing list