Page 1 of 1
Getting compare.exe: unable to open image x: error
Posted: 2014-04-16T13:43:59-07:00
by manmanda
Hello,
I just started using ImageMagick software.
In my C drive myimages folder i have two images pic1.bmp and pic2.bmp
When i executed below command
C:\myimages>compare pic1.bmp pic2.bmp x:
compare.exe: unable to open image `x:': No such file or directory @ error/blob.c
/OpenBlob/2647.
Can you please let me know why i am getting this information?
Re: Getting compare.exe: unable to open image x: error
Posted: 2014-04-16T14:03:11-07:00
by Bonzo
I have never used compare but I am wondering why are you putting x: at the end of your command?
I am sure x: should be an image; see a link to some
compare examples
Re: Getting compare.exe: unable to open image x: error
Posted: 2014-04-16T14:14:50-07:00
by fmw42
I believe that x: along with show:, etc are for unix only and require X11 to work to display the result without saving the result to disk. You will need to specify an image name and save to disk.
Re: Getting compare.exe: unable to open image x: error
Posted: 2014-04-16T14:16:43-07:00
by Bonzo
I did wonder if it was something to do with an X server but as I do not have one I could not test it!
Re: Getting compare.exe: unable to open image x: error
Posted: 2014-04-16T14:33:33-07:00
by fmw42
Re: Getting compare.exe: unable to open image x: error
Posted: 2014-04-16T22:10:28-07:00
by manmanda
After reading all your replies i used below command and it works for me
command C:\myimages>compare pic1.bmp pic2.bmp show: to view it directly
Thanks for your help
Re: Getting compare.exe: unable to open image x: error
Posted: 2014-04-16T22:24:07-07:00
by fmw42
manmanda wrote:After reading all your replies i used below command and it works for me
command C:\myimages>compare pic1.bmp pic2.bmp show: to view it directly
I am very surprised that works. I thought show: was for unix only. But perhaps on Windows the delegates.xml file has that line set for some Windows-based viewer.
Also compare generally needs a -metric defined for it, though there may be a default, but I don't know which it is.
Code: Select all
compare -metric rmse pic1.bmp pic2.bmp diff.bmp
see
http://www.imagemagick.org/script/compare.php
http://www.imagemagick.org/Usage/compare/