SVG read issue

Post any defects you find in the released or beta versions of the ImageMagick software here. Include the ImageMagick version, OS, and any command-line required to reproduce the problem. Got a patch for a bug? Post it here.
Post Reply
dogdogj

SVG read issue

Post by dogdogj »

Hi, I'm having a problem with reading large-scale svg data in a sort of weird way. I've got two machines - my local one, a late-model iMac running ImageMagick 6.4.7, and an Amazon EC2 instance running CentOS and the same version of IM. I'm trying to convert an SVG to a PNG using the convert command-line tool. The weird thing is, it works fine on the mac, and fails on the linux box. From what I've been able to gather from the debug output, the mac appears to be reading the svg (lots of SAX output), but the linux box seems to completely skip over it. What I end up with on the linux box is a big blank white png at the correct dimensions of the svg, but with nothing else - like IM just built the background then called it a day. I've searched the changelogs but couldn't find anything relevant to my situation in recent updates, and the fact that both machines are using the same version with one succeeding and the other failing leads me to believe it might not be a version issue. In any case, if anybody could help me out with this I'd very much appreciate it.

Here's the SVG we're trying to convert:

Code: Select all

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<svg xmlns="http://www.w3.org/2000/svg" version="1.1" width="5515.43289325507px" height="5515.43289325507px" x="-807.716446627535" y="-2338.81349890785">
  <path fill="#000000" d="M779.783092324805 168.103448275862l-62.9032258064516 48.261957730812q-52.0578420467186 -67.7836484983315 -124.993047830923 -102.760011123471t-160.240545050056 -34.976362625139q-95.4393770856507 -0.0 -176.779755283648 45.8217463848721t-126.077586206897 123.09510567297t-44.7372080088988 173.797274749722q0.0 145.870411568409 100.048665183537 243.478865406007t252.426307007786 97.6084538375973q167.561179087875 -0.0 280.353170189099 -131.22914349277l62.9032258064516 47.7196885428254q-59.6496106785317 75.9176863181312 -148.852892102336 117.40127919911t-199.283926585095 41.4835928809789q-209.315906562848 -0.0 -330.241935483871 -139.36318131257q-101.404338153504 -117.672413793103 -101.404338153504 -284.149054505006q0.0 -175.152947719689 122.823971078977 -294.723303670745t307.737764182425 -119.570355951057 q111.70745272525 -0.0 201.724137931034 44.1949388209121t147.497219132369 123.90850945495z"/>
  <path fill="#000000" d="M938.667964404894 20.0639599555061h80.2558398220245v334.580088987764h405.617352614016v-334.580088987764h80.2558398220245v797.677975528365h-80.2558398220245v-385.011123470523h-405.617352614016v385.011123470523h-80.2558398220245v-797.677975528365z"/>
  <path fill="#000000" d="M1698.92936596218 20.0639599555061h457.132925472747v78.6290322580645h-377.41935483871v249.44382647386h374.16573971079v78.0867630700779h-374.16573971079v312.889321468298h374.16573971079v78.6290322580645h-453.879310344828v-797.677975528365z"/>
  <path fill="#000000" d="M2294.34093437152 20.0639599555061h457.132925472747v78.6290322580645h-377.41935483871v249.44382647386h374.16573971079v78.0867630700779h-374.16573971079v312.889321468298h374.16573971079v78.6290322580645h-453.879310344828v-797.677975528365z"/>
  <path fill="#000000" d="M2806.78531701891 669.160177975528l67.7836484983315 -40.6701890989989q71.579532814238 131.771412680756 165.392102335929 131.771412680756q40.1279199110122 -0.0 75.3754171301446 -18.7082869855395t53.6846496106785 -50.1598998887653t18.4371523915462 -66.6991101223582q0.0 -40.1279199110122 -27.1134593993326 -78.6290322580645q-37.416573971079 -53.1423804226919 -136.651835372636 -127.97552836485q-99.7775305895439 -75.3754171301446 -124.179644048943 -108.996106785317q-42.2969966629588 -56.3959955506118 -42.2969966629588 -122.010567296997q0.0 -52.0578420467186 24.944382647386 -94.8971078976641t70.2238598442714 -67.5125139043381t98.4218576195773 -24.6732480533927q56.3959955506118 -0.0 105.471357063404 27.9268631813126t103.844549499444 102.760011123471l-65.0723025583982 49.3464961067853q-45.0083426028921 -59.6496106785317 -76.7310901001112 -78.6290322580645t-69.1393214682981 -18.9794215795328q-48.261957730812 -0.0 -78.9001668520578 29.2825361512792 t-30.6382091212458 72.1218020022247q0.0 26.0289210233593 10.845383759733 50.4310344827586t39.5856507230256 53.1423804226919q15.7258064516129 15.1835372636263 103.031145717464 79.7135706340378q103.57341490545 76.4599555061179 142.074527252503 136.10956618465t38.5011123470523 119.84149054505q0.0 86.7630700778643 -65.8857063403782 150.750834260289t-160.240545050056 63.9877641824249q-72.6640711902113 -0.0 -131.771412680756 -38.7722469410456t-108.996106785317 -129.873470522803z"/>
  <path fill="#000000" d="M3442.86707452725 20.0639599555061h457.132925472747v78.6290322580645h-377.41935483871v249.44382647386h374.16573971079v78.0867630700779h-374.16573971079v312.889321468298h374.16573971079v78.6290322580645h-453.879310344828v-797.677975528365z"/>
</svg>
Here's the relevant output from the Linux Box:

Code: Select all

2009-06-07T05:21:13+00:00 0:01 0.000u 6.4.7 Configure convert[12160]: utility.c/ExpandFilenames/824/Configure
  Command line: convert {-debug} {all} {samp4.svg} {samp4.png}
2009-06-07T05:21:13+00:00 0:01 0.000u 6.4.7 Configure convert[12160]: configure.c/GetConfigureOptions/528/Configure
  Searching for configure file: "/usr/share/ImageMagick-6.4.7/config/coder.xml"
2009-06-07T05:21:13+00:00 0:01 0.000u 6.4.7 Configure convert[12160]: configure.c/GetConfigureOptions/528/Configure
  Searching for configure file: "/usr/lib/ImageMagick-6.4.7/config/coder.xml"
2009-06-07T05:21:13+00:00 0:01 0.000u 6.4.7 Configure convert[12160]: configure.c/GetConfigureOptions/528/Configure
  Searching for configure file: "/usr/share/doc/ImageMagick-6.4.7/coder.xml"
2009-06-07T05:21:13+00:00 0:01 0.000u 6.4.7 Configure convert[12160]: configure.c/GetConfigureOptions/528/Configure
  Searching for configure file: "/usr/share/ImageMagick-6.4.7/coder.xml"
2009-06-07T05:21:13+00:00 0:01 0.000u 6.4.7 Configure convert[12160]: configure.c/GetConfigureOptions/528/Configure
  Searching for configure file: "/root/.magick/coder.xml"
2009-06-07T05:21:13+00:00 0:01 0.000u 6.4.7 Configure convert[12160]: configure.c/GetConfigureOptions/528/Configure
  Searching for configure file: "coder.xml"
2009-06-07T05:21:13+00:00 0:01 0.000u 6.4.7 Configure convert[12160]: coder.c/LoadCoderList/638/Configure
  Loading coder configuration file "/usr/share/ImageMagick-6.4.7/config/coder.xml" ...
2009-06-07T05:21:13+00:00 0:01 0.000u 6.4.7 Module convert[12160]: module.c/OpenModule/1120/Module
  Searching for module "SVG" using filename "svg.la"
2009-06-07T05:21:13+00:00 0:01 0.000u 6.4.7 Module convert[12160]: module.c/GetMagickModulePath/528/Module
  Searching for coder module file "svg.la" ...
2009-06-07T05:21:13+00:00 0:01 0.000u 6.4.7 Module convert[12160]: module.c/OpenModule/1129/Module
  Opening module at path "/usr/lib/ImageMagick-6.4.7/modules-Q16/coders/svg.la"
2009-06-07T05:21:13+00:00 0:01 0.000u 6.4.7 Module convert[12160]: module.c/OpenModule/1156/Module
  Method "RegisterSVGImage" in module "SVG" at address 0xb76c1400
2009-06-07T05:21:13+00:00 0:01 0.000u 6.4.7 Module convert[12160]: module.c/OpenModule/1170/Module
  Method "UnregisterSVGImage" in module "SVG" at address 0xb76c13b0
2009-06-07T05:21:13+00:00 0:01 0.000u 6.4.7 Blob convert[12160]: blob.c/OpenBlob/2330/Blob
    read 3 magic header bytes
2009-06-07T05:21:13+00:00 0:01 0.000u 6.4.7 Cache convert[12160]: cache.c/DestroyPixelCacheInfo/1501/Cache
  destroy 
2009-06-07T05:21:13+00:00 0:01 0.000u 6.4.7 Configure convert[12160]: configure.c/GetConfigureOptions/528/Configure
  Searching for configure file: "/usr/share/ImageMagick-6.4.7/config/magic.xml"
2009-06-07T05:21:13+00:00 0:01 0.000u 6.4.7 Configure convert[12160]: configure.c/GetConfigureOptions/528/Configure
  Searching for configure file: "/usr/lib/ImageMagick-6.4.7/config/magic.xml"
2009-06-07T05:21:13+00:00 0:01 0.000u 6.4.7 Configure convert[12160]: configure.c/GetConfigureOptions/528/Configure
  Searching for configure file: "/usr/share/doc/ImageMagick-6.4.7/magic.xml"
2009-06-07T05:21:13+00:00 0:01 0.000u 6.4.7 Configure convert[12160]: configure.c/GetConfigureOptions/528/Configure
  Searching for configure file: "/usr/share/ImageMagick-6.4.7/magic.xml"
2009-06-07T05:21:13+00:00 0:01 0.000u 6.4.7 Configure convert[12160]: configure.c/GetConfigureOptions/528/Configure
  Searching for configure file: "/root/.magick/magic.xml"
2009-06-07T05:21:13+00:00 0:01 0.000u 6.4.7 Configure convert[12160]: configure.c/GetConfigureOptions/528/Configure
  Searching for configure file: "magic.xml"
2009-06-07T05:21:13+00:00 0:01 0.000u 6.4.7 Configure convert[12160]: magic.c/LoadMagicList/681/Configure
  Loading magic configure file "/usr/share/ImageMagick-6.4.7/config/magic.xml" ...
2009-06-07T05:21:13+00:00 0:01 0.000u 6.4.7 Blob convert[12160]: blob.c/OpenBlob/2330/Blob
    read 3 magic header bytes
2009-06-07T05:21:13+00:00 0:01 0.000u 6.4.7 Resource convert[12160]: resource.c/AcquireMagickResource/221/Resource
  Area: 232mb/232mb/3.3206gb
2009-06-07T05:21:13+00:00 0:01 0.000u 6.4.7 Resource convert[12160]: resource.c/AcquireMagickResource/221/Resource
  Memory: 232mb/232mb/2.4904gb
2009-06-07T05:21:13+00:00 0:01 0.000u 6.4.7 Cache convert[12160]: cache.c/OpenPixelCache/3786/Cache
  open samp4.svg[0] (heap memory, 5515x5515 232mb)
2009-06-07T05:21:16+00:00 0:04 1.190u 6.4.7 Module convert[12160]: module.c/OpenModule/1120/Module
  Searching for module "PNG" using filename "png.la"
2009-06-07T05:21:16+00:00 0:04 1.190u 6.4.7 Module convert[12160]: module.c/GetMagickModulePath/528/Module
  Searching for coder module file "png.la" ...
2009-06-07T05:21:16+00:00 0:04 1.190u 6.4.7 Module convert[12160]: module.c/OpenModule/1129/Module
  Opening module at path "/usr/lib/ImageMagick-6.4.7/modules-Q16/coders/png.la"
2009-06-07T05:21:16+00:00 0:04 1.190u 6.4.7 Module convert[12160]: module.c/OpenModule/1156/Module
  Method "RegisterPNGImage" in module "PNG" at address 0xb6e55fa0
2009-06-07T05:21:16+00:00 0:04 1.190u 6.4.7 Module convert[12160]: module.c/OpenModule/1170/Module
  Method "UnregisterPNGImage" in module "PNG" at address 0xb6e55f00
2009-06-07T05:21:16+00:00 0:04 1.190u 6.4.7 Configure convert[12160]: configure.c/GetConfigureOptions/528/Configure
  Searching for configure file: "/usr/share/ImageMagick-6.4.7/config/delegates.xml"
2009-06-07T05:21:16+00:00 0:04 1.190u 6.4.7 Configure convert[12160]: configure.c/GetConfigureOptions/528/Configure
  Searching for configure file: "/usr/lib/ImageMagick-6.4.7/config/delegates.xml"
2009-06-07T05:21:16+00:00 0:04 1.190u 6.4.7 Configure convert[12160]: configure.c/GetConfigureOptions/528/Configure
  Searching for configure file: "/usr/share/doc/ImageMagick-6.4.7/delegates.xml"
2009-06-07T05:21:16+00:00 0:04 1.190u 6.4.7 Configure convert[12160]: configure.c/GetConfigureOptions/528/Configure
  Searching for configure file: "/usr/share/ImageMagick-6.4.7/delegates.xml"
2009-06-07T05:21:16+00:00 0:04 1.190u 6.4.7 Configure convert[12160]: configure.c/GetConfigureOptions/528/Configure
  Searching for configure file: "/root/.magick/delegates.xml"
2009-06-07T05:21:16+00:00 0:04 1.190u 6.4.7 Configure convert[12160]: configure.c/GetConfigureOptions/528/Configure
  Searching for configure file: "delegates.xml"
2009-06-07T05:21:16+00:00 0:04 1.190u 6.4.7 Configure convert[12160]: delegate.c/LoadDelegateList/1177/Configure
  Loading delegate configuration file "/usr/lib/ImageMagick-6.4.7/config/delegates.xml" ...
2009-06-07T05:21:16+00:00 0:04 1.190u 6.4.7 Coder convert[12160]: png.c/WritePNGImage/7542/Coder
  enter WritePNGImage()
2009-06-07T05:21:16+00:00 0:04 1.190u 6.4.7 Coder convert[12160]: png.c/WriteOnePNGImage/6208/Coder
    enter WriteOnePNGImage()
2009-06-07T05:21:16+00:00 0:04 1.190u 6.4.7 Coder convert[12160]: png.c/WriteOnePNGImage/6275/Coder
      width=5515
2009-06-07T05:21:16+00:00 0:04 1.190u 6.4.7 Coder convert[12160]: png.c/WriteOnePNGImage/6277/Coder
      height=5515
2009-06-07T05:21:16+00:00 0:04 1.190u 6.4.7 Coder convert[12160]: png.c/WriteOnePNGImage/6279/Coder
      image->depth=16
2009-06-07T05:21:16+00:00 0:04 1.190u 6.4.7 Coder convert[12160]: png.c/WriteOnePNGImage/6323/Coder
      Setting up pHYs chunk
2009-06-07T05:21:16+00:00 0:04 1.190u 6.4.7 Coder convert[12160]: png.c/WriteOnePNGImage/6367/Coder
      Setting up bKGd chunk
2009-06-07T05:21:16+00:00 0:04 1.190u 6.4.7 Coder convert[12160]: png.c/WriteOnePNGImage/6566/Coder
      Tentative PNG color type: 6
2009-06-07T05:21:16+00:00 0:04 1.190u 6.4.7 Coder convert[12160]: png.c/WriteOnePNGImage/6568/Coder
      image_info->type: 0
2009-06-07T05:21:16+00:00 0:04 1.190u 6.4.7 Coder convert[12160]: png.c/WriteOnePNGImage/6570/Coder
      image->depth: 16
2009-06-07T05:21:16+00:00 0:04 1.190u 6.4.7 Coder convert[12160]: png.c/WriteOnePNGImage/6572/Coder
      ping_info->bit_depth: 16
2009-06-07T05:21:16+00:00 0:04 1.190u 6.4.7 Coder convert[12160]: png.c/WriteOnePNGImage/6968/Coder
      PNG color type: 6
2009-06-07T05:21:16+00:00 0:04 1.190u 6.4.7 Coder convert[12160]: png.c/WriteOnePNGImage/6974/Coder
    Setting up deflate compression
2009-06-07T05:21:16+00:00 0:04 1.190u 6.4.7 Coder convert[12160]: png.c/WriteOnePNGImage/6978/Coder
      Compression buffer size: 32768
2009-06-07T05:21:16+00:00 0:04 1.190u 6.4.7 Coder convert[12160]: png.c/WriteOnePNGImage/6983/Coder
      Compression mem level: 9
2009-06-07T05:21:16+00:00 0:04 1.190u 6.4.7 Coder convert[12160]: png.c/WriteOnePNGImage/6994/Coder
      Compression level: 7
2009-06-07T05:21:16+00:00 0:04 1.190u 6.4.7 Coder convert[12160]: png.c/WriteOnePNGImage/7006/Coder
    Setting up filtering
2009-06-07T05:21:16+00:00 0:04 1.190u 6.4.7 Coder convert[12160]: png.c/WriteOnePNGImage/7020/Coder
      Filter_type: 0
2009-06-07T05:21:16+00:00 0:04 1.190u 6.4.7 Coder convert[12160]: png.c/WriteOnePNGImage/7042/Coder
      Base filter method: ADAPTIVE
2009-06-07T05:21:16+00:00 0:04 1.190u 6.4.7 Coder convert[12160]: png.c/WriteOnePNGImage/7133/Coder
    Writing PNG header chunks
2009-06-07T05:21:16+00:00 0:04 1.190u 6.4.7 Coder convert[12160]: png.c/LogPNGChunk/1031/Coder
    Writing vpAg chunk, length: 9
2009-06-07T05:21:16+00:00 0:04 1.190u 6.4.7 Coder convert[12160]: png.c/WriteOnePNGImage/7194/Coder
    Allocating 44120 bytes of memory for pixels
2009-06-07T05:21:40+00:00 0:28 11.560u 6.4.7 Coder convert[12160]: png.c/WriteOnePNGImage/7348/Coder
    Writing PNG image data
2009-06-07T05:21:40+00:00 0:28 11.560u 6.4.7 Coder convert[12160]: png.c/WriteOnePNGImage/7350/Coder
      Width: 5515
2009-06-07T05:21:40+00:00 0:28 11.560u 6.4.7 Coder convert[12160]: png.c/WriteOnePNGImage/7352/Coder
      Height: 5515
2009-06-07T05:21:40+00:00 0:28 11.560u 6.4.7 Coder convert[12160]: png.c/WriteOnePNGImage/7354/Coder
      PNG sample depth: 16
2009-06-07T05:21:40+00:00 0:28 11.560u 6.4.7 Coder convert[12160]: png.c/WriteOnePNGImage/7356/Coder
      PNG color type: 6
2009-06-07T05:21:40+00:00 0:28 11.560u 6.4.7 Coder convert[12160]: png.c/WriteOnePNGImage/7358/Coder
      PNG Interlace method: 0
2009-06-07T05:21:40+00:00 0:28 11.560u 6.4.7 Coder convert[12160]: png.c/WriteOnePNGImage/7389/Coder
    Setting up text chunk
2009-06-07T05:21:40+00:00 0:28 11.560u 6.4.7 Coder convert[12160]: png.c/WriteOnePNGImage/7391/Coder
      keyword: create-date
2009-06-07T05:21:40+00:00 0:28 11.560u 6.4.7 Coder convert[12160]: png.c/WriteOnePNGImage/7389/Coder
    Setting up text chunk
2009-06-07T05:21:40+00:00 0:28 11.560u 6.4.7 Coder convert[12160]: png.c/WriteOnePNGImage/7391/Coder
      keyword: modify-date
2009-06-07T05:21:40+00:00 0:28 11.560u 6.4.7 Coder convert[12160]: png.c/WriteOnePNGImage/7389/Coder
    Setting up text chunk
2009-06-07T05:21:40+00:00 0:28 11.560u 6.4.7 Coder convert[12160]: png.c/WriteOnePNGImage/7391/Coder
      keyword: svg:base-uri
2009-06-07T05:21:40+00:00 0:28 11.560u 6.4.7 Coder convert[12160]: png.c/WriteOnePNGImage/7435/Coder
    Writing PNG end info
2009-06-07T05:21:40+00:00 0:28 11.560u 6.4.7 Coder convert[12160]: png.c/WriteOnePNGImage/7513/Coder
    exit WriteOnePNGImage()
2009-06-07T05:21:40+00:00 0:28 11.560u 6.4.7 Coder convert[12160]: png.c/WritePNGImage/7569/Coder
  exit WritePNGImage()
2009-06-07T05:21:40+00:00 0:29 11.630u 6.4.7 Resource convert[12160]: resource.c/RelinquishMagickResource/855/Resource
  Memory: 232mb/0b/2.4904gb
2009-06-07T05:21:40+00:00 0:29 11.630u 6.4.7 Cache convert[12160]: cache.c/DestroyPixelCacheInfo/1501/Cache
  destroy samp4.svg[0]
Here's the relevant output from the mac (I removed most of the SAX stuff since there's so much of it.

Code: Select all

2009-06-07T00:26:09-05:00 0:01 0.000u 6.4.7 Configure convert[82375]: utility.c/ExpandFilenames/813/Configure
  Command line: convert {-debug} {all} {samp4.svg} {samp4.png}
2009-06-07T00:26:09-05:00 0:01 0.000u 6.4.7 Configure convert[82375]: configure.c/GetConfigureOptions/528/Configure
  Searching for configure file: "/opt/local/share/ImageMagick-6.4.7/config/coder.xml"
2009-06-07T00:26:09-05:00 0:01 0.000u 6.4.7 Configure convert[82375]: configure.c/GetConfigureOptions/528/Configure
  Searching for configure file: "/opt/local/lib/ImageMagick-6.4.7/config/coder.xml"
2009-06-07T00:26:09-05:00 0:01 0.000u 6.4.7 Configure convert[82375]: configure.c/GetConfigureOptions/528/Configure
  Searching for configure file: "/opt/local/share/doc/ImageMagick-6.4.7/coder.xml"
2009-06-07T00:26:09-05:00 0:01 0.000u 6.4.7 Configure convert[82375]: configure.c/GetConfigureOptions/528/Configure
  Searching for configure file: "/opt/local/share/ImageMagick-6.4.7/coder.xml"
2009-06-07T00:26:09-05:00 0:01 0.000u 6.4.7 Configure convert[82375]: configure.c/GetConfigureOptions/528/Configure
  Searching for configure file: "/Users/jeremyholland/.magick/coder.xml"
2009-06-07T00:26:09-05:00 0:01 0.000u 6.4.7 Configure convert[82375]: configure.c/GetConfigureOptions/528/Configure
  Searching for configure file: "coder.xml"
2009-06-07T00:26:09-05:00 0:01 0.000u 6.4.7 Configure convert[82375]: coder.c/LoadCoderList/638/Configure
  Loading coder configuration file "/opt/local/share/ImageMagick-6.4.7/config/coder.xml" ...
2009-06-07T00:26:09-05:00 0:01 0.000u 6.4.7 Module convert[82375]: module.c/OpenModule/1120/Module
  Searching for module "SVG" using filename "svg.la"
2009-06-07T00:26:09-05:00 0:01 0.000u 6.4.7 Module convert[82375]: module.c/GetMagickModulePath/528/Module
  Searching for coder module file "svg.la" ...
2009-06-07T00:26:09-05:00 0:01 0.000u 6.4.7 Module convert[82375]: module.c/OpenModule/1129/Module
  Opening module at path "/opt/local/lib/ImageMagick-6.4.7/modules-Q16/coders/svg.la"
2009-06-07T00:26:09-05:00 0:01 0.000u 6.4.7 Module convert[82375]: module.c/OpenModule/1156/Module
  Method "RegisterSVGImage" in module "SVG" at address 0x86e600
2009-06-07T00:26:09-05:00 0:01 0.000u 6.4.7 Module convert[82375]: module.c/OpenModule/1170/Module
  Method "UnregisterSVGImage" in module "SVG" at address 0x86e7d0
2009-06-07T00:26:09-05:00 0:01 0.000u 6.4.7 Blob convert[82375]: blob.c/OpenBlob/2330/Blob
    read 3 magic header bytes
2009-06-07T00:26:09-05:00 0:01 0.000u 6.4.7 Cache convert[82375]: cache.c/DestroyPixelCacheInfo/1431/Cache
  destroy 
2009-06-07T00:26:09-05:00 0:01 0.000u 6.4.7 Configure convert[82375]: configure.c/GetConfigureOptions/528/Configure
  Searching for configure file: "/opt/local/share/ImageMagick-6.4.7/config/magic.xml"
2009-06-07T00:26:09-05:00 0:01 0.000u 6.4.7 Configure convert[82375]: configure.c/GetConfigureOptions/528/Configure
  Searching for configure file: "/opt/local/lib/ImageMagick-6.4.7/config/magic.xml"
2009-06-07T00:26:09-05:00 0:01 0.000u 6.4.7 Configure convert[82375]: configure.c/GetConfigureOptions/528/Configure
  Searching for configure file: "/opt/local/share/doc/ImageMagick-6.4.7/magic.xml"
2009-06-07T00:26:09-05:00 0:01 0.000u 6.4.7 Configure convert[82375]: configure.c/GetConfigureOptions/528/Configure
  Searching for configure file: "/opt/local/share/ImageMagick-6.4.7/magic.xml"
2009-06-07T00:26:09-05:00 0:01 0.000u 6.4.7 Configure convert[82375]: configure.c/GetConfigureOptions/528/Configure
  Searching for configure file: "/Users/jeremyholland/.magick/magic.xml"
2009-06-07T00:26:09-05:00 0:01 0.000u 6.4.7 Configure convert[82375]: configure.c/GetConfigureOptions/528/Configure
  Searching for configure file: "magic.xml"
2009-06-07T00:26:09-05:00 0:01 0.000u 6.4.7 Configure convert[82375]: magic.c/LoadMagicList/681/Configure
  Loading magic configure file "/opt/local/share/ImageMagick-6.4.7/config/magic.xml" ...
2009-06-07T00:26:09-05:00 0:01 0.000u 6.4.7 Blob convert[82375]: blob.c/OpenBlob/2330/Blob
    read 3 magic header bytes
2009-06-07T00:26:09-05:00 0:01 0.000u 6.4.7 Resource convert[82375]: resource.c/AcquireUniqueFileResource/402/Resource
  
2009-06-07T00:26:09-05:00 0:01 0.000u 6.4.7 Resource convert[82375]: resource.c/AcquireUniqueFileResource/430/Resource
  /var/folders/A0/A0pCSOuzGlmAhoTRXK2bKE+++TI/-Tmp-/magick-JjYvLDaw
2009-06-07T00:26:09-05:00 0:01 0.000u 6.4.7 Coder convert[82375]: svg.c/ReadSVGImage/2929/Coder
  begin SAX
2009-06-07T00:26:09-05:00 0:01 0.000u 6.4.7 Coder convert[82375]: svg.c/SVGSetDocumentLocator/711/Coder
    SAX.setDocumentLocator()
2009-06-07T00:26:09-05:00 0:01 0.000u 6.4.7 Coder convert[82375]: svg.c/SVGStartDocument/727/Coder
    SAX.startDocument()
2009-06-07T00:26:09-05:00 0:01 0.000u 6.4.7 Coder convert[82375]: svg.c/SVGInternalSubset/507/Coder
    SAX.internalSubset(svg, -//W3C//DTD SVG 1.1//EN, http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd)
2009-06-07T00:26:09-05:00 0:01 0.000u 6.4.7 Coder convert[82375]: svg.c/SVGExternalSubset/2601/Coder
    SAX.externalSubset(svg, -//W3C//DTD SVG 1.1//EN, http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd)
2009-06-07T00:26:09-05:00 0:01 0.000u 6.4.7 Coder convert[82375]: svg.c/SVGStartElement/800/Coder
    SAX.startElement(svg
.
(A whole load of SAX/PNG conversion stuff here - let me know if you need it and I'll post)
.
009-06-07T00:26:11-05:00 0:03 1.510u 6.4.7 Draw convert[82375]: draw.c/DrawImage/3102/Draw
  end draw-image
2009-06-07T00:26:11-05:00 0:03 1.510u 6.4.7 Resource convert[82375]: resource.c/RelinquishUniqueFileResource/888/Resource
  /var/folders/A0/A0pCSOuzGlmAhoTRXK2bKE+++TI/-Tmp-/magick-JjYvLDaw
2009-06-07T00:26:11-05:00 0:03 1.510u 6.4.7 Module convert[82375]: module.c/OpenModule/1120/Module
  Searching for module "PNG" using filename "png.la"
2009-06-07T00:26:11-05:00 0:03 1.510u 6.4.7 Module convert[82375]: module.c/GetMagickModulePath/528/Module
  Searching for coder module file "png.la" ...
2009-06-07T00:26:11-05:00 0:03 1.510u 6.4.7 Module convert[82375]: module.c/OpenModule/1129/Module
  Opening module at path "/opt/local/lib/ImageMagick-6.4.7/modules-Q16/coders/png.la"
2009-06-07T00:26:11-05:00 0:03 1.510u 6.4.7 Module convert[82375]: module.c/OpenModule/1156/Module
  Method "RegisterPNGImage" in module "PNG" at address 0x88b6a0
2009-06-07T00:26:11-05:00 0:03 1.510u 6.4.7 Module convert[82375]: module.c/OpenModule/1170/Module
  Method "UnregisterPNGImage" in module "PNG" at address 0x88bb20
2009-06-07T00:26:11-05:00 0:03 1.510u 6.4.7 Coder convert[82375]: png.c/WritePNGImage/7542/Coder
  enter WritePNGImage()
2009-06-07T00:26:11-05:00 0:03 1.510u 6.4.7 Coder convert[82375]: png.c/WriteOnePNGImage/6208/Coder
    enter WriteOnePNGImage()
2009-06-07T00:26:11-05:00 0:03 1.510u 6.4.7 Coder convert[82375]: png.c/WriteOnePNGImage/6275/Coder
      width=5515
2009-06-07T00:26:11-05:00 0:03 1.510u 6.4.7 Coder convert[82375]: png.c/WriteOnePNGImage/6277/Coder
      height=5515
2009-06-07T00:26:11-05:00 0:03 1.510u 6.4.7 Coder convert[82375]: png.c/WriteOnePNGImage/6279/Coder
      image->depth=16
2009-06-07T00:26:11-05:00 0:03 1.510u 6.4.7 Coder convert[82375]: png.c/WriteOnePNGImage/6323/Coder
      Setting up pHYs chunk
2009-06-07T00:26:11-05:00 0:03 1.510u 6.4.7 Coder convert[82375]: png.c/WriteOnePNGImage/6367/Coder
      Setting up bKGd chunk
2009-06-07T00:26:11-05:00 0:03 1.510u 6.4.7 Coder convert[82375]: png.c/WriteOnePNGImage/6566/Coder
      Tentative PNG color type: 6
2009-06-07T00:26:11-05:00 0:03 1.510u 6.4.7 Coder convert[82375]: png.c/WriteOnePNGImage/6568/Coder
      image_info->type: 0
2009-06-07T00:26:11-05:00 0:03 1.510u 6.4.7 Coder convert[82375]: png.c/WriteOnePNGImage/6570/Coder
      image->depth: 16
2009-06-07T00:26:11-05:00 0:03 1.510u 6.4.7 Coder convert[82375]: png.c/WriteOnePNGImage/6572/Coder
      ping_info->bit_depth: 16
2009-06-07T00:26:11-05:00 0:03 1.510u 6.4.7 Coder convert[82375]: png.c/WriteOnePNGImage/6968/Coder
      PNG color type: 6
2009-06-07T00:26:11-05:00 0:03 1.510u 6.4.7 Coder convert[82375]: png.c/WriteOnePNGImage/6974/Coder
    Setting up deflate compression
2009-06-07T00:26:11-05:00 0:03 1.510u 6.4.7 Coder convert[82375]: png.c/WriteOnePNGImage/6978/Coder
      Compression buffer size: 32768
2009-06-07T00:26:11-05:00 0:03 1.510u 6.4.7 Coder convert[82375]: png.c/WriteOnePNGImage/6983/Coder
      Compression mem level: 9
2009-06-07T00:26:11-05:00 0:03 1.520u 6.4.7 Coder convert[82375]: png.c/WriteOnePNGImage/6994/Coder
      Compression level: 7
2009-06-07T00:26:11-05:00 0:03 1.520u 6.4.7 Coder convert[82375]: png.c/WriteOnePNGImage/7006/Coder
    Setting up filtering
2009-06-07T00:26:11-05:00 0:03 1.520u 6.4.7 Coder convert[82375]: png.c/WriteOnePNGImage/7020/Coder
      Filter_type: 0
2009-06-07T00:26:11-05:00 0:03 1.520u 6.4.7 Coder convert[82375]: png.c/WriteOnePNGImage/7042/Coder
      Base filter method: ADAPTIVE
2009-06-07T00:26:11-05:00 0:03 1.520u 6.4.7 Coder convert[82375]: png.c/WriteOnePNGImage/7133/Coder
    Writing PNG header chunks
2009-06-07T00:26:11-05:00 0:03 1.520u 6.4.7 Coder convert[82375]: png.c/LogPNGChunk/1031/Coder
    Writing vpAg chunk, length: 9
2009-06-07T00:26:11-05:00 0:03 1.520u 6.4.7 Coder convert[82375]: png.c/WriteOnePNGImage/7194/Coder
    Allocating 44120 bytes of memory for pixels
2009-06-07T00:26:20-05:00 0:12 9.930u 6.4.7 Coder convert[82375]: png.c/WriteOnePNGImage/7348/Coder
    Writing PNG image data
2009-06-07T00:26:20-05:00 0:12 9.930u 6.4.7 Coder convert[82375]: png.c/WriteOnePNGImage/7350/Coder
      Width: 5515
2009-06-07T00:26:20-05:00 0:12 9.930u 6.4.7 Coder convert[82375]: png.c/WriteOnePNGImage/7352/Coder
      Height: 5515
2009-06-07T00:26:20-05:00 0:12 9.930u 6.4.7 Coder convert[82375]: png.c/WriteOnePNGImage/7354/Coder
      PNG sample depth: 16
2009-06-07T00:26:20-05:00 0:12 9.930u 6.4.7 Coder convert[82375]: png.c/WriteOnePNGImage/7356/Coder
      PNG color type: 6
2009-06-07T00:26:20-05:00 0:12 9.930u 6.4.7 Coder convert[82375]: png.c/WriteOnePNGImage/7358/Coder
      PNG Interlace method: 0
2009-06-07T00:26:20-05:00 0:12 9.930u 6.4.7 Coder convert[82375]: png.c/WriteOnePNGImage/7389/Coder
    Setting up text chunk
2009-06-07T00:26:20-05:00 0:12 9.930u 6.4.7 Coder convert[82375]: png.c/WriteOnePNGImage/7391/Coder
      keyword: create-date
2009-06-07T00:26:20-05:00 0:12 9.930u 6.4.7 Coder convert[82375]: png.c/WriteOnePNGImage/7389/Coder
    Setting up text chunk
2009-06-07T00:26:20-05:00 0:12 9.930u 6.4.7 Coder convert[82375]: png.c/WriteOnePNGImage/7391/Coder
      keyword: modify-date
2009-06-07T00:26:20-05:00 0:12 9.930u 6.4.7 Coder convert[82375]: png.c/WriteOnePNGImage/7435/Coder
    Writing PNG end info
2009-06-07T00:26:20-05:00 0:12 9.930u 6.4.7 Coder convert[82375]: png.c/WriteOnePNGImage/7513/Coder
    exit WriteOnePNGImage()
2009-06-07T00:26:20-05:00 0:12 9.930u 6.4.7 Coder convert[82375]: png.c/WritePNGImage/7569/Coder
  exit WritePNGImage()
2009-06-07T00:26:20-05:00 0:12 9.950u 6.4.7 Resource convert[82375]: resource.c/RelinquishMagickResource/855/Resource
  Memory: 232mb/0b/3gb
2009-06-07T00:26:20-05:00 0:12 9.950u 6.4.7 Cache convert[82375]: cache.c/DestroyPixelCacheInfo/1431/Cache
  destroy /var/folders/A0/A0pCSOuzGlmAhoTRXK2bKE+++TI/-Tmp-/magick-JjYvLDaw[0]
Thanks in advance
dogdogj

Re: SVG read issue

Post by dogdogj »

Actually, narrowed down the issue - the problem is that the Linux box is misinterpreting the sign of the x and y attributes on the svg root node. negative X and Y should indicate that the upper-left corner is up and to the left of 0, 0; ImageMagick, however, is moving it down and to the right. No idea why this is happening, I've worked around it for the time being by swapping the sign myself before converting.
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: SVG read issue

Post by magick »

We can reproduce the problem you posted and will have a patch in the Subversion trunk within a day or two. Thanks.
Post Reply