[XeTeX] include graphics: filesize difference

caapv 208 caapv208 at yahoo.co.jp
Sun Jun 3 04:02:23 CEST 2007


--- Peter Dyballa <Peter_Dyballa at web.de> wrote:

> The PNG  
> contents can be compressed by xdvipdfmx or pdfTeX,
> too, I think, up  
> to the maximal value as set in their DEF or CFG
> files.

A stream already compressed usually won't compress
further.  xdvipdfmx doesn't try to compress something
already compressed.

> Then both  
> convertors create different versions of PDF: 1.4 vs.
> 1.3. I think PDF  
> 1.4 has learned LZW compression for "stream"
> objects, which can be  
> better than the default FLATE.

As I said, xdvipdfmx doesn't try to compress jpeg, so
there is no difference.  Jonathan_pic.jpeg is from
http://scripts.sil.org/Welcome
Source:
\documentclass{article}
\usepackage{graphics}
\begin{document}
\includegraphics{Jonathan_pic.jpeg}
\end{document}
Results:
pdflatex          (PDF 1.4) 9339 bytes
xelatex+xdvipdfmx (PDF 1.3) 8124 bytes
xelatex+xdvipdfmx (PDF 1.4) 8126 bytes

> Some space (a few 100
> bytes...1 K) can  
> be saved by concatenating command chains, i.e. /a /b
> /c /d /e can  
> become /a/b/c/d/c: five bytes saved!

This kind of space saving will definitely be lost
during the compression.

> --
> Mit friedvollen Gr将苡ゥホen
> 
>    Pete

Regards,
SMiyata

--------------------------------------
Easy + Joy + Powerful = Yahoo! Bookmarks x Toolbar
http://pr.mail.yahoo.co.jp/toolbar/



More information about the XeTeX mailing list