[OpenIndiana-discuss] I am having problems with Inkscape and convert producing PNG's

Udo Grabowski (IMK) udo.grabowski at kit.edu
Mon Oct 15 19:42:19 UTC 2012

On 10/15/12 05:05 PM, Jonathan Adams wrote:
> it's the same message on both, I'm not sure if Inkscape is using
> "convert" to produce the file.
> jadams at jadlaptop:~/images$ convert Mylogo.svg /tmp/Mylogo.png
> convert: Application was compiled with png.h from libpng-1.2.44
> `/tmp/Mylogo.png' @ warning/png.c/MagickPNGWarningHandler/1781.
> convert: Application  is  running with png.c from libpng-1.4.3
> `/tmp/Mylogo.png' @ warning/png.c/MagickPNGWarningHandler/1781.
> convert: Incompatible libpng version in application and library
> `/tmp/Mylogo.png' @ warning/png.c/MagickPNGWarningHandler/1781.
> convert: memory allocation failed `/tmp/Mylogo.png' @
> error/png.c/WriteOnePNGImage/8873.
> jadams at jadlaptop:/sal/images$ pkg list | egrep -i "inkscape|png|magick"
> image/editor/imagemagick (sfe)                   i--
> image/editor/inkscape (sfe)                       0.48.2-           i--
> image/library/g++/imagemagick (sfe)              i--
> image/library/libpng                              0.5.11-           i--
> Any suggestions on what to install to get this working? :)

This is a annoying problem with nearly everything that's linked
to png or cairo. I usually run with

env LD_PRELOAD=/usr/lib/libpng12.so convert

but I don't know if libpng12 was intended (I suspect not), and
if not, if the called functions really do the same as the
libpng14 ones (save the ones not in libpng12). At least the
images produced look ok.
This was a build error present also on some Linux systems, and
should be cleaned up, since a lot of programs and libraries
using or linking to libpng-dependent stuff are affected and
break without some workaround. I don't know if it is possible
to build some wrapper libpng as a workaround which can solve
this until this mess fixed, but I don't have any clue how to
trick out the version check in such a library. Maybe someone
else has an idea.
Dr.Udo Grabowski    Inst.f.Meteorology a.Climate Research IMK-ASF-SAT
www-imk.fzk.de/asf/sat/grabowski/ www.imk-asf.kit.edu/english/sat.php
KIT - Karlsruhe Institute of Technology            http://www.kit.edu
Postfach 3640,76021 Karlsruhe,Germany  T:(+49)721 608-26026 F:-926026

More information about the OpenIndiana-discuss mailing list