Converted files are not identical

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
Ganesha
Posts: 23
Joined: 2014-05-20T06:40:01-07:00
Authentication code: 6789

Converted files are not identical

Post by Ganesha »

Hi ,

I have converted a svg file to png
using the command

Code: Select all

convert lotofcirlces.svg test.png
Here the view of the original svg varies from the converted png file.

here is the svg file : https://www.dropbox.com/s/z1tja1hjh6xhs ... ircles.svg


here is the view of the files svg file in browser and convert png file in viewer https://www.dropbox.com/s/zhqotp65kbcxoto/2.png

Kindly help me why this happens and how to fix this problem
User avatar
dlemstra
Posts: 1570
Joined: 2013-05-04T15:28:54-07:00
Authentication code: 6789
Contact:

Re: Converted files are not identical

Post by dlemstra »

The image you are seeing on the background is there because of this part of your svg file:

Code: Select all

  <image
     xlink:href="lotsofcircles.jpg"
     sodipodi:absref="C:\Users\biohazzard\SVG Files\Yo, Make me!\lotsofcircles.jpg"
     width="429"
     height="433"
     id="image2449"
     x="0"
     y="0" />
Because the browser cannot find the file it it showing an 'file not found' image that is stretched to 429x433. The command line does not show a 'file not found' image, it just shows a white background.
.NET + ImageMagick = Magick.NET https://github.com/dlemstra/Magick.NET, @MagickNET, Donate
Ganesha
Posts: 23
Joined: 2014-05-20T06:40:01-07:00
Authentication code: 6789

Re: Converted files are not identical

Post by Ganesha »

Hi dlemstra,
I understand your point that there is no file in the path so it can't be converted. But while I am using MAC . It gives the file the original view of the image. Kindly test the following in a MAC machine.
Can you check the following step by step:
1) download the file https://www.dropbox.com/s/z1tja1hjh6xhs ... ircles.svg
2) Open with your browser(safari).
3) It gives the exact view of the image.
4) Now convert to png using imagemagick
5) open the converted png file in viewer both are different

Since the file(lotsofcircles.jpg) is not found in the filepath how can be it is viewable in safari browser and why it is unable to convert through Imagemagick for the same reason?
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: Converted files are not identical

Post by snibgo »

Your SVG contains loads of Inkscape data. I assume your IM SVG renderer is Inkscape?
snibgo's IM pages: im.snibgo.com
User avatar
dlemstra
Posts: 1570
Joined: 2013-05-04T15:28:54-07:00
Authentication code: 6789
Contact:

Re: Converted files are not identical

Post by dlemstra »

Do you want my address so you can send me a MAC? The image you are seeing on the background is a 'blown up' version of the following image: http://1stclass.mylargescale.com/stevec ... age-01.gif. This is an image that is only used by your safari browser. It will display this image when an image could not be found. The command line version of ImageMagick will of course not use this :)
.NET + ImageMagick = Magick.NET https://github.com/dlemstra/Magick.NET, @MagickNET, Donate
Ganesha
Posts: 23
Joined: 2014-05-20T06:40:01-07:00
Authentication code: 6789

Re: Converted files are not identical

Post by Ganesha »

Thanks a bunch ! dlemstra :)
Post Reply