[TYPO3-english] Accessing original file name in IMAGE object

Christian Lerrahn (Cerebrum) christian.lerrahn at cerebrum.com.au
Wed Apr 18 09:02:28 CEST 2012


Hi,
I need refer to the original image file used in an image object as a
parameter in the img tag. Basically, I want to achieve something like

<img src="scaled_image.jpg" osrc="original_image.jpg" alt="image" />

Now, I want to do this in the context of the image path taken from a
database field which might contain a list of image files. I therefore
can't just refer to the database field because I would still need to
find out which one of the images is the correct one.

Is it possible, in the context of an IMAGE object, to somehow use the
original file name that the scaled version was created from?

What I want to achieve is that I can use JavaScript which acts like a
magnifying glass on the image. There is plenty of libraries but they
all need some kind of reference to the full size image, of course.

Cheers,
Christian

-- 
Christian Lerrahn

Cerebrum (Aust) Pty Ltd
Suite 302W, The Block Arcade
282-284 Collins St
Melbourne Vic 3000
P: 03 9650 1100
WWW: http://www.cerebrum.com.au



More information about the TYPO3-english mailing list