Importing images in Write documents makes file huge

Philipp Kocher philipp.kocher at
Thu Nov 26 03:01:23 EST 2009

Hi all,

We would like the students to create simple html-documents with text and 
images and upload them to the schoolserver for a simple homepage. The 
Write activity (we are using version 60 on build 802) has a feature 
"Keep as Hypertext (HTML)", but when images are inserted into the 
document the files get huge (10 times bigger than original image).

If I check the file size in the datastore, an image created with Record 
(file size 38kB, mimetype image/jpg) inserted in a html document 
containing nothing else than the image, the html file is 554kB (mimetype 

The image is saved in the html-document with:
<img ... src="data:image/png;base64,{image data}">

I can do the same thing with Abiword 2.8.1 and the html file is just 
52kB, probably because it is using jpg:
<img ... src="data:image/jpeg;base64,{image data}">

There is an old ticket for that (last modified 2 years ago):
Ticket #1442 non-PNG image support for Abiword

Any suggestions for a workaround? Is there an other activity we could 
use to create html pages?

Best regards,

PS: other document types created with Write have the same problem:
image/jpg: 			 38kB (created with Record activity)
application/rtf:		821kB (created with Write activity)
text/html:			554kB (created with Write activity)
application/vnd.oasis.opendocument.text: 406kB (created with Write 
activity, default)

More information about the Devel mailing list