Page 1 of 1

convert command in Ubuntu and CentOS are not the same

Posted: 2015-09-04T12:48:13-07:00
by kocan
Hi friend,

I have a problem about convert command

I run command: convert image.png image.svg

in my ubuntu laptop, can convert, keep color, keep the same size, and can view as image

in my CentOS server, can convert but: doesn't keep color, size increase very much (200KB to 24MB), and can not view as image(It seems view as html tag?)

so what is option for convert command in server CentOS for it can run as Ubuntu laptop

Thank you very much,

Re: convert command in Ubuntu and CentOS are not the same

Posted: 2015-09-04T13:03:59-07:00
by snibgo
Differences are probably due to running different versions of ImageMagick on the two computers.

The output, image.svg, will contain a large number of filled circles. Is this what you really want?

Re: convert command in Ubuntu and CentOS are not the same

Posted: 2015-09-04T14:12:41-07:00
by fmw42
I have moved this topic to the User's forum, since it did not seem to have anything to do with Imagick, which is not the same as Imagemagick.

Re: convert command in Ubuntu and CentOS are not the same

Posted: 2015-09-04T20:32:02-07:00
by kocan
snibgo wrote:Differences are probably due to running different versions of ImageMagick on the two computers.

The output, image.svg, will contain a large number of filled circles. Is this what you really want?
Hi friend, thank you for your reply

I want to after convert, I can see file .svg in browser, the filesize is 24MB, can not view. I don't want "will contain a large number of filled circles"

So how can I fix it :(

Re: convert command in Ubuntu and CentOS are not the same

Posted: 2015-09-05T02:07:05-07:00
by Bonzo
In your case the operating should not make a difference; as snibgo said:
Differences are probably due to running different versions of ImageMagick on the two computers.
Check the versions, if the Centos is a standard installation the Imagemagick version there could be 5 or more years old. If this is the case the only way to fix the problem is an update.

Re: convert command in Ubuntu and CentOS are not the same

Posted: 2015-09-05T10:46:26-07:00
by fmw42
It is also possible that you need to upgrade libpng.