[TYPO3-dev] CropScale in imgResource
Stefan Geith
typo3dev at geithware.de
Fri Jan 13 16:26:54 CET 2006
Wolfgang Klinger schrieb:
> *hiya!*
>
> On Fri, 13 Jan 2006, Stefan Geith wrote the following:
>> No, a pixel offset doesnt work, because you don't know,
>> wether width or height has to be cropped;
>
> I think you should find a way to make it work as this percentage thing
> is rather confusing and no one will use it then...
What is confusing with
cropH: -100=left, 0=center, 100=right
cropV: -100=top, 0=center, 100=bottom
>
>> And you do not know, how many pixels are available to crop ...
>
> Why can't you get width and height information of the image?
*I* can get it.
But do you know, what images (landscape or portrait-mode)
get uploaded ? It always depends on the aspect-ratio !
And: What if I want ot crop 50px at the left, but my Image
only has 40px width ?
So only percentages will work.
-
Stefan
>
>
> kind regards
> Wolfgang
>
> _______________________________________________
> TYPO3-dev mailing list
> TYPO3-dev at lists.netfielders.de
> http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-dev
>
More information about the TYPO3-dev
mailing list