[TYPO3-dev] CropScale in imgResource
Martin Kutschker
Martin.Kutschker at n0spam-blackbox.net
Fri Jan 13 15:27:17 CET 2006
Stefan Geith schrieb:
> Martin Kutschker schrieb:
>
>> Stefan Geith schrieb:
>>
>>> Wouldn't this be nice to have in the core ?
>>
>>
>> Yes, have missied it already on some occasions.
>>
>> But I want to have the alignment of cropped images configurable:
>>
>> cropVertAlign = top|center|bottom
>> cropHorAlign = left|center|right
>
>
> I would suggest
> cropV = -100...100
> cropH = -100...100
>
> Values are percentage:
> -100 = top/left
> 0 = centered
> 100 = bottom/right
Percentage of what? Of the target image size or the size of the cropped
image?
But I think that it doesn't make much sense. Simpler is a pixel offset
from the border. A positive offset is from top/left a negative from
bottom/right. 0 means center!
Masi
More information about the TYPO3-dev
mailing list