Hello,

Recently I have been trying to convert over a PDF of a staff directory into 
a TiddlyWiki (TW) file. It has a picture of each employee and a short 
description. For ease of distribution (and since there doesn't seem to be a 
universal standard for containerizing a web directory), I wanted to keep 
all the images embedded in the TW ... contrary to the predominant 
suggestion to keep binary files as external links. To build the TW file, I 
would directly cut and paste the pictures from the PDF into Chrome. That 
allowed me to import each binary picture as a tiddler that I could 
transclude into each person's profile.

However, I am noticing two issues (maybe interrelated):
1) The tiddler can be identified as image/gif, image/x-icon, image/jpeg or 
image/png and the resulting tiddler displays fine. Not a problem per se, 
just an agnosticism that I was not quite expecting that may indicate some 
sloppy handling of mime-types somewhere which may be problematic from a 
security standpoint ... especially if zip files are being introduced in 
5.1.8. There was a huge infection of the Dyre worm that just made it around 
here that was hidden in an emailed zip file. I would be extra special 
careful to force a download only action on the zip files and not allow the 
browser to interpret them as the many, many different html container 
formats that are simply html directory trees zipped up.

2) The resulting file is about 10X the size (source PDF=3MB and resulting 
tiddler with not much extra info=28MB). I was expecting about a 33% 
increase in size due to the text encoding and a fixed overhead of about 1MB 
from the empty TiddlyWiki size ... maybe 5MB but not 28. I am wondering 
whether the technique of cutting and pasting is converting my nice 
compressed images in the PDF to raw bitmaps and whether there is something 
I can do.

Any thoughts on how better to compress these tiddlers?

/Mike

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/tiddlywiki.
For more options, visit https://groups.google.com/d/optout.

Reply via email to