Inkscape.org
Beyond the Basics Failing to convert SVG to EPS via shell execution
  1. #1
    marcos.s marcos.s @marcos.s
    Hello. I am experiencing an issue while converting an SVG to an EPS via shell execution from a NodeJS script. Inkscape 0.92.2 running in a Docker container. The issue only happens when the SVG contains a reference to a PNG, e.g. <image xlink:href="path/to/png" /> while running via shell execution in NodeJS. This issue does not appear when running the same command directly in the container. Shell command being run: inkscape input-file.svg -E output.eps --export-ignore-filters --export-ps-level=3
     
    When run by NodeJS, inkscape prints this to stderr:
    (inkscape:45): GdkPixbuf-WARNING **: 14:20:37.261: Error loading XPM image loader: Image type “xpm” is not supported

     

    (inkscape:45): GdkPixbuf-CRITICAL **: 14:20:37.263: gdk_pixbuf_get_has_alpha: assertion 'GDK_IS_PIXBUF (pixbuf)' failed

     

    (inkscape:45): GdkPixbuf-CRITICAL **: 14:20:37.263: gdk_pixbuf_add_alpha: assertion 'GDK_IS_PIXBUF (pixbuf)' failed

     

    (inkscape:45): GLib-GObject-CRITICAL **: 14:20:37.263: g_object_unref: assertion 'G_IS_OBJECT (object)' failed

     

    (inkscape:45): GdkPixbuf-CRITICAL **: 14:20:37.263: gdk_pixbuf_get_rowstride: assertion 'GDK_IS_PIXBUF (pixbuf)' failed

     

    (inkscape:45): GdkPixbuf-CRITICAL **: 14:20:37.263: gdk_pixbuf_get_height: assertion 'GDK_IS_PIXBUF (pixbuf)' failed

     

    (inkscape:45): GdkPixbuf-CRITICAL **: 14:20:37.263: gdk_pixbuf_get_width: assertion 'GDK_IS_PIXBUF (pixbuf)' failed

     

    (inkscape:45): GdkPixbuf-CRITICAL **: 14:20:37.263: gdk_pixbuf_get_pixels_with_length: assertion 'GDK_IS_PIXBUF (pixbuf)' failed

     

    (inkscape:45): GdkPixbuf-CRITICAL **: 14:20:37.264: gdk_pixbuf_get_height: assertion 'GDK_IS_PIXBUF (pixbuf)' failed

     

    (inkscape:45): GdkPixbuf-CRITICAL **: 14:20:37.264: gdk_pixbuf_get_width: assertion 'GDK_IS_PIXBUF (pixbuf)' failed

     

    (inkscape:45): GdkPixbuf-CRITICAL **: 14:20:37.289: gdk_pixbuf_get_width: assertion 'GDK_IS_PIXBUF (pixbuf)' failed

     

    (inkscape:45): GdkPixbuf-CRITICAL **: 14:20:37.289: gdk_pixbuf_get_height: assertion 'GDK_IS_PIXBUF (pixbuf)' failed

     

    (inkscape:45): GdkPixbuf-CRITICAL **: 14:20:37.289: gdk_pixbuf_get_width: assertion 'GDK_IS_PIXBUF (pixbuf)' failed

     

    (inkscape:45): GdkPixbuf-CRITICAL **: 14:20:37.289: gdk_pixbuf_get_height: assertion 'GDK_IS_PIXBUF (pixbuf)' failed

     

    (inkscape:45): GdkPixbuf-CRITICAL **: 14:20:37.289: gdk_pixbuf_get_rowstride: assertion 'GDK_IS_PIXBUF (pixbuf)' failed

     

    (inkscape:45): GdkPixbuf-CRITICAL **: 14:20:37.289: gdk_pixbuf_get_height: assertion 'GDK_IS_PIXBUF (pixbuf)' failed

     

    (inkscape:45): GdkPixbuf-CRITICAL **: 14:20:37.290: gdk_pixbuf_get_width: assertion 'GDK_IS_PIXBUF (pixbuf)' failed

     

    (inkscape:45): GdkPixbuf-CRITICAL **: 14:20:37.290: gdk_pixbuf_get_pixels_with_length: assertion 'GDK_IS_PIXBUF (pixbuf)' failed

     

    (inkscape:45): GLib-GObject-CRITICAL **: 14:20:37.316: g_object_unref: assertion 'G_IS_OBJECT (object)' failed
Inkscape Inkscape.org Inkscape Forum Beyond the Basics Failing to convert SVG to EPS via shell execution