[TYPO3] Image zoom only if width > X
JoH
info at cybercraft.de
Fri Aug 11 18:47:02 CEST 2006
>>>> You need the register to get the position of the image in the CSV
>>>> list of files.
>>>
>>> It cannot be done strictly using Typoscript?
>>
>> AFAIK there is no way to get the size of the original image with
>> TypoScript only, but I might be wrong.
>
> I just discovered this in the TSref this week [1]:
>
> "The array $GLOBALS["TSFE"]->lastImageInfo is set with the info-array
> of the returning image (if any) and contains width, height and so on."
>
> This means you *can* access the properties of an image:
Well - yes - but this is the "returning image", which is not the original
but the result of the image operations.
So you _can_ find out the size of the image rendered to the page content,
but this doesn't help in this case, since, as far as I understood, you want
to make sure the original is big enough to be shown in the
click-enlarge-popup. But maybe I just got you wrong.
Joey
--
Wenn man keine Ahnung hat: Einfach mal Fresse halten!
(If you have no clues: simply shut your knob sometimes!)
Dieter Nuhr, German comedian
openBC: http://www.cybercraft.de
T3 cookbook: http://www.typo3experts.com
More information about the TYPO3-english
mailing list