[bootlin/training-materials updates] master: Properly reduce the agenda PDF size (8590822d)

Thomas Petazzoni thomas.petazzoni at bootlin.com
Fri Apr 26 12:20:06 CEST 2019


Repository : https://github.com/bootlin/training-materials
On branch  : master
Link       : https://github.com/bootlin/training-materials/commit/8590822d2204ce4a07c3c8d732450fa01e393fae

>---------------------------------------------------------------

commit 8590822d2204ce4a07c3c8d732450fa01e393fae
Author: Thomas Petazzoni <thomas.petazzoni at bootlin.com>
Date:   Fri Apr 26 12:20:06 2019 +0200

    Properly reduce the agenda PDF size
    
    The issue was that header.svg included a huge bitmap. The default
    logic of our build system is to render .svg into .pdf files, assuming
    they contain only vector graphics. This makes the header.pdf file
    particularly large, and therefore any PDF including it is equally
    large.
    
    The same bitmap in .png is also quite large, due to the background
    picture that doesn't compress well. We really need the background
    picture to be in .jpg format. However, having the logos in .jpg would
    mean having artifacts.
    
    So instead, what we do is that we combine the best of both worlds and
    do the composition directly in LaTeX: the background is in .jpg
    format, and we overlay the two logos in .pdf on top of it.
    
    It requires yet another LaTeX package, the "overpic" package.
    
    Signed-off-by: Thomas Petazzoni <thomas.petazzoni at bootlin.com>


>---------------------------------------------------------------

8590822d2204ce4a07c3c8d732450fa01e393fae
 common/agenda.sty |   8 +-
 common/header.svg | 226 ------------------------------------------------------
 2 files changed, 7 insertions(+), 227 deletions(-)

Diff suppressed because of size. To see it, use:

    git diff-tree --root --patch-with-stat --no-color --ignore-space-at-eol --textconv --ext-diff --cc 8590822d2204ce4a07c3c8d732450fa01e393fae



More information about the training-materials-updates mailing list