[Typo3-dev] Playing with Typo3 and SVG
Bernhard Kraft
kraftb at kraftb.at
Tue Sep 27 19:42:02 CEST 2005
Henning Pingel wrote:
> http://www.henningpingel.de/Inline_SVG_with_Typo3.42.0.html
I played around with SVG somewhere around 2001. I just wanted to get a
specific SVG converted to a pixel-graphic. I had to use special tools
like "Basilisk" (I think it was called) which was an JAVA app to display
SVG under linux.
I know much has happened in between and also heard some rumours that IE7
will support SVG out of the box. Altough I'm a nerdish Linux user I must
admit that most of the Visitors of our sites (and also others if you
trust User-Agent statistics on the web) use M$ IE 5-6.
I really appreciate that FF 1.5 will support SVG by default (didn't know
about Opera :) and will surely have a lot of toughts about how it can
get integrated into T3 and what are the possibilties.
For example I started to write an Image-Editor extension for T3 which is
already capabable of cropping to an area which you defined before by
dragging the corners of a rectangle. But when I came to the point where
I had to rotate the image in the prview I got stuck because HTML and JS
is not capable of such a thing ---- I don't know exactly how SVG in HTML
works but from your writing it should be possible to place an <img> tag
in a SVG area and rotate this area. Am I correct ?
I quickly scanned over your SVG tutorial and at the first glance it is
quite well done. I have one tip for you: you can detect the browser and
have different TS by using conditions based on the user-agent string. i.e:
-------------<TS SETUP>----------------
[useragent = *MSIE*]
# TS used for MSIE
[useragent = *Firefox/1.5.*]
# TS used for Firexof 1.5.x
[else]
# TS for other browsers
[end]
-------------</TS SETUP>----------------
And I also wondered why you prefer inline SVG. From a "BE User
usability" point of view it isn't clear if it is easier if SVG can get
pasted directly or if it's easier to upload a file. Just because most
SVGs will get created using Macromedia(R) Freehand or similar tools ...
just small SVG wraps will get created "by hand". I think it should be
possible to use the "Multimedia" content element of T3 as SVG container.
You could use the "media" file-field for storing an SVG file or the
bodytext field for storing it directly and switch between those two
modes by using a palette
greets,
Bernhard
More information about the TYPO3-dev
mailing list