Just some thoughts.
Brannon "Ashy" Hollingsworth
Brannon "Ashy" Hollingsworth
<<img embed small.jpg>>
And with Udo's suggestion:
<<img embed small.jpg 50 45>>
or whatever.
--
Jules
www.knightnet.org.uk
http://knighjm.googlepages.com/knightnet-default-tw.html
<<img small.jpg width: 50 height: 45>>
Udo
However (he says to a sound of grinding gears) - it might be possible
to trick something up with a base64 (or similar) de/en-coding tool.
This is basically how its done in MIME encoded emails with embeded
images.
What would be needed would be a tool to encode the image to ASCII
(that's what Base64 does). And some JavaScript to do an on-the-fly
decode and insert into the DOM.
However, I've just gone well beyond my own actual knowledge of what can
be done, maybe someone with better JS skills will get some ideas from
this?
It must be possible in some way since it works fine in my email
clients.
http://www.TiddlyTools.com/#AttachFilePlugin
converts binary file to base64
puts base64 in a tiddler tagged with "attachment"
extends wiki images and links to recognize references to attachment
tiddlers to render the image or create an 'external link' to the
attached binary.
Note: this Plugin works for FF only, as it uses the data: URI, which is
not supported on IE
enjoy,
-e
Eric Shulman
TiddlyTools / ELS Design Studios
Is the data: URI just for reading in the data?
If it is, I guess you could process the file externally?
It would be great to get this working for everyone.
Reply
Brannon "Ashy" Hollingsworth
http://www.wowweezowwee.com
UPDATE: http://www.TiddlyTools.com/#AttachFilePlugin
Now with the ability to store binary file content in three different
locations:
1) embedded in the attachment tiddler (encoded as base64)
2) on your filesystem (a 'local link' path/filename)
3) on a web server (a 'remote link' URL)
Regardless of the source of the binary content, the plugin creates an
"attachment tiddler" for each file you attach. These tiddlers can then
be used in place of a direct file or URL reference in your embedded
image or external links:
[img[tooltip|AttachmentTitle]]
or
[[display this text|AttachmentTitle]]
With embedded data, your TW document can be completely
self-contained... but only when using FireFox (IE can't handle
"data://"). However, an attachment tiddler can define several
locations at the same time: if the binary data doesn't exist in one
place, then the plugin tries the next one. If you define an attachment
with *both* embedded data and a 'local link' and then copy the
appropriate files to your local filesystem, IE will be able to show the
same binary content as FireFox, albeit from a different storage
location.
The "fallback" approach also lets you 'virtualize' the location very
large binary content such as PDFs, MP3's, and even *video* files, by
using just a 'remote reference link' without embedding any data or
downloading huge files to your hard disk. Of course, if you DO
download an attached file, the plugin will use the local copy instead
of accessing the server each time, thereby saving bandwidth and
allowing you to 'go mobile' without having to edit any tiddlers to
change the link locations...
Lastly, though not completed (but nearly there), the plugin includes an
integrated 'uploader' that will let you create a 'remote link'
attachment tiddler AND transfer the local file to a remote server
location in the same step!
While not exactly like the 'automatic cached image directory' you
suggest, I do have plans for putting a "detach" button into each
attachment tiddler:
This button will let you decode the attached base64 back into binary
content and then prompts for a path/file and writes the binary to that
file. It will then update the attachment tiddler's 'local link' to
reflect where you placed the file on your local drive.
-e
While not exactly like the 'automatic cached image directory' you
suggest, I do have plans for putting a "detach" button into each
attachment tiddler:
This button will let you decode the attached base64 back into binary
content and then prompts for a path/file and writes the binary to that
file. It will then update the attachment tiddler's 'local link' to
reflect where you placed the file on your local drive.