convert command in Ubuntu and CentOS are not the same

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
kocan
Posts: 2
Joined: 2015-09-04T12:44:31-07:00
Authentication code: 1151

convert command in Ubuntu and CentOS are not the same

Post 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,
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

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

Post 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?
snibgo's IM pages: im.snibgo.com
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

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

Post 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.
kocan
Posts: 2
Joined: 2015-09-04T12:44:31-07:00
Authentication code: 1151

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

Post 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 :(
Bonzo
Posts: 2971
Joined: 2006-05-20T08:08:19-07:00
Location: Cambridge, England

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

Post 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.
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

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

Post by fmw42 »

It is also possible that you need to upgrade libpng.
Post Reply