This question already has an answer here:
I am trying to display the dimensions of an image and then resize them with a program my system says is there called
Package ImageMagick-18.104.22.168-7.el6_5.i686 already installed and latest version.
But getting error:
-bash-4.1# display main-bg1.jpg
display: unable to open X server `' @ display.c/DisplayImageCommand/420.