On 11 Oct, 01:13, Plausible <[email protected]> wrote: > Hello, > > I continue my newbie's ramble in TiddlySpace, this time through > 'image' area. > > I understand how to get images in a tiddler like > so:http://glossary.tiddlyspace.com/#[[image%20tiddlers]] > Great!!
> But: > 1) Using <<image myImageTiddler width:xx height:yy>>, for a bitmap > image width and height seem to /scale/, whereas for an SVG they seem > to /crop/. Is that right? How to scale SVG? > It should scale the svg as well. SVG images seem to behave differently on different browsers. Can you point me to the image in question so I can see what is going on? > 2) How does one use EditTemplateFieldsPlugin to set the > "server.content-type" field manually? Is this considered a bit of a > hack? It would seem faster than using <<binaryUpload>> if you have the > image as a base64 string rather than a local file. You need to include the <<editFields>> macro in your edit template. This will create an "add new field" in your edit template. Click it to create a new row and on the left put server.content-type (the field name) and on the right image/svg+xml I use this method quite a lot... whether it's a hack or meant to do that I'm not sure (maybe fnd can comment) > > 3) Using the cool SVG Editor (http://alexhough.tiddlyspace.com/#[[SVG > %20Editor]]%20Diagram) in my space when I hit "create new SVG tiddler" > and copy the drawing's source there, the tiddler doesn't show as an > image (but rather as the code). Is it because it's missing the image > flag in the server.content-type field? > Exactly. Otherwise it has no idea your want it displayed as an image. The system could guess here (ie. look for the svg tags) but this might lead to weird unexpected consequences for the user so we left it as being something you have to say explicility. > 4) I was rather hoping for a plugin that allows editing an SVG image > already present in the space. As in: I have a tiddler about a party > that incorporates an SVGimage tiddler with two balloons (or bottles). > Let's party harder. I click on 'open' (button next to the image in the > party tiddler?); this opens the image in an editor where I add dozens > of balloons/bottles; I hit 'save' (somewhere), and the plugin takes > care of putting the modified code in the existing SVGimage tiddler. Is > something like this possible? > It's definitely possible. One could imagine getting the svg edit application (the one used in alex's space) [1] to work as an edit template (only for tiddlers with the server.content-type field set to image/svg+xml and loading the existing svg file and then saving it when finished. You would need to get this running on a tiddlyspace (I had a go but it proved too problematic as there are lots of file dependencies which have to have a certain namespace). I've been meaning to make something basis for a while but just haven't had the time :/ Good luck with the imaging! Jon [1] http://code.google.com/p/svg-edit/ > cheers, > > ~P -- You received this message because you are subscribed to the Google Groups "TiddlyWiki" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/tiddlywiki?hl=en.

