Page 1 of 1
Issues converting image
Posted: 2016-05-02T04:44:54-07:00
by Sri79
Hi,
I was using ImageMagick version 6.7.3 for quite a long time. Recently thought to use the latest version. However, the image conversion is not so good with the recent version. I am trying to convert the EMF format file to JPG format.
Source image in emf format:
https://onedrive.live.com/redir?resid=B ... file%2cemf
Converted using V6.7.3
Converted using V7.0.1
Please fix.
Thanks
Re: Issues converting image
Posted: 2016-05-02T05:35:47-07:00
by snibgo
EMF is a Microsoft format. The default result from the conversion done by ImageMagick v6.9.2-5 (EDIT and v7.0.1-0) is identical to the result from Microsoft Paint.
The image is vector, so if you want more legibility from the IM conversion, precede it with "-density 300" or other number.
EDIT to add: The image is solid colours, so PNG is a better format that JPG because it doesn't change the colours, and the file is much smaller.
Re: Issues converting image
Posted: 2016-05-02T05:41:16-07:00
by Sri79
Thanks for quick reply. I will give a try.
Re: Issues converting image
Posted: 2016-05-02T05:51:06-07:00
by snibgo
See also my edit above about the JPG format.
Re: Issues converting image
Posted: 2016-05-02T05:56:58-07:00
by Sri79
Ok thanks. The suggestion you gave resolves my problem.
I am allowed to use JPG or GIF only. So, which one is better JPG or GIF?
Or if we temporarily convert the EMF to PNG and then to JPG or GIF, will it give better quality?
Re: Issues converting image
Posted: 2016-05-02T06:11:53-07:00
by snibgo
There is no advantage in converting to PNG, then from PNG to something else. I suggest you convert directly to your final format.
If you have less than 256 colours, GIF will give you an exactly correct result. JPG won't. The default JPG from this image is 5 times larger than the GIF.
Re: Issues converting image
Posted: 2016-05-02T07:23:41-07:00
by Sri79
Okay. I do not know whether the image will be 256 colors or not. Is there anyway we can check whether an image has less than 256 colors or more?
Re: Issues converting image
Posted: 2016-05-02T08:20:36-07:00
by snibgo
Code: Select all
convert source.emf -unique-colors -format %w info:
The output is:
Re: Issues converting image
Posted: 2016-05-02T22:47:32-07:00
by Sri79
ok. Thanks a lot