

Whenever a IMAGE object is created, TSFE holds some additional info about the image, such as height/width.
Here's an example on how to access those properties of TSFE..
lib.imageInfo = COA lib.imageInfo { 10 = IMAGE # Remember to change this to an image that exists on yor server 10.file = fileadmin/templates/images/testpic.jpg 10.wrap = |<br /> 20 = TEXT 20.data = TSFE:lastImageInfo|0 20.wrap = Image Width = |<br /> 30 = TEXT 30.data = TSFE:lastImageInfo|1 30.wrap = Image Height = |<br /> 40 = TEXT 40.data = TSFE:lastImageInfo|2 40.wrap = Image Type = |<br /> 50 = TEXT 50.data = TSFE:lastImageInfo|3 50.wrap = Image + Path = |<br /> 60 = TEXT 60.data = TSFE:lastImageInfo|origFile 60.wrap = Original Image + Path = |<br /> 70 = TEXT 70.data = TSFE:lastImageInfo|origFile_mtime 70.strftime = %d:%m:%y %H:%M:%S 70.wrap = Image uploaded at: |<br /> }
Related snippets:
More fun with TSFE - Getting image information
Fun with TSFE Part 2: Getting additional typolink information
Fun with TSFE Part 3: Getting client information
Fun with TSFE Part 4: Other useful information
This snippet was submitted by Peter Klein




Add comment