[TYPO3] Image zoom only if width > X
Christopher
bedlamhotel at gmail.com
Fri Aug 11 18:57:42 CEST 2006
On 8/11/06, JoH <info at cybercraft.de> wrote:
> >>>> 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.
>
No, no, you've got it right. I just wanted to point out the (limited)
circumstances in which you _can_ use TS to find image properties.
-Christopher
More information about the TYPO3-english
mailing list