[texhax] pdfetex: bad PNG image processing

Alberto Mijares amijaresp at gmail.com
Fri Apr 16 11:45:57 CEST 2010

Hi buddies,

I need a little help here.

Trying to build a PDF presentation (latex-beamer class) with pdflatex.
An image has transparent background; however, inside the PDF it has a
black background. This is when I create the PDF on FreeBSD 8. In the
other hand, when I create it on Linux Fedora 12 it looks good.

Since it is a PNG image, I thought it was a libpng problem, but I have
the latest release (1.4) and the teTeX-base port was recently build.

There's some thing else I don't understand. Look at this:

$ file `which pdflatex`
/usr/local/bin/pdflatex: symbolic link to `pdfetex'

- On Fedora 12

$ ldd $(which pdfetex)
        linux-gate.so.1 =>  (0x00626000)
        libpng12.so.0 => /usr/lib/libpng12.so.0 (0x00404000)
        libz.so.1 => /lib/libz.so.1 (0x00d39000)
        libkpathsea.so.4 => /usr/lib/libkpathsea.so.4 (0x00d1d000)
        libpoppler.so.5 => /usr/lib/libpoppler.so.5 (0x0485e000)
        libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0x00513000)
        libm.so.6 => /lib/libm.so.6 (0x00cea000)
        libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x004a2000)
        libc.so.6 => /lib/libc.so.6 (0x00b73000)
        liblcms.so.1 => /usr/lib/liblcms.so.1 (0x07c85000)
        libjpeg.so.62 => /usr/lib/libjpeg.so.62 (0x05a45000)
        libfreetype.so.6 => /usr/lib/libfreetype.so.6 (0x0036a000)
        libfontconfig.so.1 => /usr/lib/libfontconfig.so.1 (0x0042e000)
        libopenjpeg.so.2 => /usr/lib/libopenjpeg.so.2 (0x07ef6000)
        /lib/ld-linux.so.2 (0x00b51000)
        libexpat.so.1 => /lib/libexpat.so.1 (0x00340000)

On FreeBSD 8

$ ldd `which pdfetex`
	libpng.so.6 => /usr/local/lib/libpng.so.6 (0x28168000)
	libz.so.5 => /lib/libz.so.5 (0x2818d000)
	libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0x2819f000)
	libm.so.5 => /lib/libm.so.5 (0x28293000)
	libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x282ad000)
	libc.so.7 => /lib/libc.so.7 (0x282b8000)

You see? In one OS it uses libpng and not libjpeg, and viceversa. But
it still process my PNG image in both of them (just with the issue

teTeX-base port, on FreeBSD, has no config options; so I can't modify
configure options without know what I'm doing.

Any suggestion?

Thanks in advance.

Alberto Mijares

More information about the texhax mailing list