Claus Cyrny wrote:
Gnosos wrote:
Hi again,
I have actually found a way to scale objects using the method described at http://www.unet.univie.ac.at/~a9900479/svg4tom/svg4tom1.html http://www.unet.univie.ac.at/~a9900479/svg4tom/svg4tom1.html . Essentially, a simple Javascript in the web page communicates with another simple one in the SVG file to scale it.
Now my question is this. Is there any way to automate Inkscape to include the necessary script code in svg files?
Why in the world do you want to do that? Didn't you read Rygle's response?
Claus
Read my post of January 12. By using the web page to scale the image, the same image can be used in multiple ways. Furthermore, changes to the single copy of the image would be reflected correctly throughout the web site.
Perhaps a simple example will illustrate. Suppose you had a web site devoted to a specific software. One page has links to different topics (About, tutorial, documentation, plugins, etc.). Each link includes a small 3cm x 3cm icon that both symbolizes the content of the linked page and actually appears on the linked page. On the linked page the icon image appears much large (say 10 cm x 10 cm) so that instead of being just symbolic, the user can actually see what's in the image. As is common on web pages, one might also want to be able to click on the image to see an enlarged version.
Yet another reason is that web page layouts change, and one should not have to go back and modify content in order to modify layout.
This is a pretty typical usage for images on the web. Rygle's suggestion, if I understood it correctly, requires changing the image's scale in Inkscape for every copy of the image used on the site and changing the original image's scale each time the web page layout requires an image with different size.