ImageMagick

Displaying graphics in LyX is ok, but the exporting or viewing procecure stops because a conversion tool from JPEG/GIF to EPS is missing. So I have to install ImageMagick (which uses Ghostscript).

ImageMagic-Configure output
export JPG=/opt/libjpeg

export JPGv2=/opt/libjpegv2

export TIFF=/opt/libtiff-3.7.2

export PNG=/opt/libpng-1.2.8

export GS=/opt/gs-8.5.1



CFLAGS="-O2 -mcpu=7450 -mabi=altivec -maltivec -I$JPG -I$JPGv2/include 

        -I$TIFF/include -I$PNG/include -I$GS/include"

CPPFLAGS=$CFLAGS

LDFLAGS="-L$JPG -L$JPGv2/lib -L$TIFF/lib -L$PNG/lib "



export CFLAGS CPPFLAGS LDFLAGS



export PATH=$PATH:$PNG/bin:$JPG:$JPGv2/bin:$TIFF/bin:$GS/bin



./configure --prefix=/opt/imagemagick-6.2.1 --with-gslib 

 --with-gs-font-dir=$GS/fonts --without-perl --with-gnu-ld=yes 

 --enable-static=yes --enable-shared=no 



ln -s /opt/imagemagick-6.2.1/bin/convert /usr/bin/convert

using commandline

#!/bin/bash



IMAGEDIR=/opt/imagemagick/bin

IMAGEPNG=$IMAGEDIR/convert



SIZE="-size 10x10"

DEPTH="-depth 4"



# bzw. rgba(rrr,ggg,bbb,aaa)

$IMAGEPNG $SIZE $DEPTH xc:#FFFFFF00 white_00.png

$IMAGEPNG $SIZE $DEPTH xc:#FFFFFF10 white_10.png

$IMAGEPNG $SIZE $DEPTH xc:#FFFFFF20 white_20.png

$IMAGEPNG $SIZE $DEPTH xc:#FFFFFF30 white_30.png

$IMAGEPNG $SIZE $DEPTH xc:#FFFFFF40 white_40.png

$IMAGEPNG $SIZE $DEPTH xc:#FFFFFF50 white_50.png

$IMAGEPNG $SIZE $DEPTH xc:#FFFFFF60 white_60.png

$IMAGEPNG $SIZE $DEPTH xc:#FFFFFF70 white_70.png

$IMAGEPNG $SIZE $DEPTH xc:#FFFFFF80 white_80.png

$IMAGEPNG $SIZE $DEPTH xc:#FFFFFF90 white_90.png

$IMAGEPNG $SIZE $DEPTH xc:#FFFFFFA0 white_A0.png

$IMAGEPNG $SIZE $DEPTH xc:#FFFFFFB0 white_B0.png

$IMAGEPNG $SIZE $DEPTH xc:#FFFFFFC0 white_C0.png

$IMAGEPNG $SIZE $DEPTH xc:#FFFFFFD0 white_D0.png

$IMAGEPNG $SIZE $DEPTH xc:#FFFFFFE0 white_E0.png

$IMAGEPNG $SIZE $DEPTH xc:#FFFFFFF0 white_F0.png

Here ist the listing of the images. Top left corner - white - lower right bottom - nearly fully transparent.

       
       
       
       

ghost-script

Ghostscript is an often used component in printing PS and converting PS to PDFs.

./configure --prefix=/opt/gs-8.5.3 --with-jbig2dec --with-jasper

Do not forget to install the needed fonts.

graphic libraries

- Jpeg v6
- Jpeg 2000
- Tiff
- PNG