convert: unbalanced graphic context push-pop `graphic-contex

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
hsandjajaxl

convert: unbalanced graphic context push-pop `graphic-contex

Post by hsandjajaxl »

Hello guys,

I am trying to convert an SVG to JPG through the command line and I am seeing this warning message:
convert: unbalanced graphic context push-pop `graphic-context' @ draw.c/DrawImage/2247.

The image result is not good, it looks stretched and only the top left corner of the image is printed on the canvas.

The command I use is: convert Test_2.svg Test_2_production.jpg
I am on linux Ubuntu 9.10 32-bit Karmic Canonical.
My imagemagick version is ImageMagick 6.5.1-0 2009-08-27 Q16

My SVG file is as follows:

Code: Select all

<?xml version="1.0" standalone="no"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" 
  "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<svg width="4in" height="3in" version="1.1"
     xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
  <desc>This graphic links to an external image
  </desc>
  <image x="200" y="200" width="100px" height="100px"
         xlink:href="http://s3.amazonaws.com/xlsuite_production/assets/2514864/slide2.png">
    <title>My image</title>
  </image>
</svg>
Anybody ever came across this problem? Could any of you perhaps see anything wrong with what I did?

Thank you so much for the help, reply and feedback.

Regards,
Harman
User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Re: convert: unbalanced graphic context push-pop `graphic-co

Post by anthony »

works for me IM v6.6.3-2

however RSVG ("rsvg-view") reports that the SVG is in error
Error displaying image: Error domain 1 code 5 on line 11 column 11
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
Post Reply