[NTG-context] output file size with repeated image

Pablo Rodriguez oinos at gmx.es
Tue Apr 14 19:07:21 CEST 2015


Dear list,

I have the following sample:

    \setupexternalfigure[location=default]
    \starttext
    \startmode[repeated-image]
    \dorecurse{10}{
        \dorecurse{10}{
            \dorecurse{10}{
                \externalfigure[cow]\input zapf\par}}}
    \stopmode
    \startmode[single-image]
    \externalfigure[cow]
    \dorecurse{10}{
        \dorecurse{10}{
            \dorecurse{10}{
                \input zapf\par}}}
    \stopmode
    \startmode[no-image]
    \dorecurse{10}{
        \dorecurse{10}{
            \dorecurse{10}{
                \input zapf\par}}}
    \stopmode
    \stoptext

Output file sizes with different modes are the following:

    --mode=repeated-image    745KB

    --mode=single-image      303KB

    --mode=no-image          302KB

Although the image is the same (and it is only embedded once) file size
with repeated image is almost two and a half times that the version with
a single image.

Is this right or am I missing something?

Many thanks for your help,


Pablo
-- 
http://www.ousia.tk


More information about the ntg-context mailing list