The image was read and processed successfully, your error is generated by cat.display . There is no image format delegate, but a window is displayed.
You will see the same error message on the command line if you simply type:
display test.jpg
So this is a problem with Image Magick, not RMagick or Ruby.
It seems that the display method is designed to work with the X11 window, which is not the default feature in Mac OS X. You might be able to restore it, including the X11 service and libary. I use XQuartz to support X11, but installing it after Image Magick (like me) will not solve this problem. So, I get the same error as you, but I do not use display , I just use the command like open test.jpg on the command line, or:
`open test.jpg`
from Ruby. This is not a platform agnostic solution, but I can perfectly view the images that I process.
Alternatively, you can try reinstalling Image Magick and rmagick with X11 support (assuming, of course, that you have an X11 service installed, such as XQuartz):
brew unlink imagemagick brew install imagemagick
I tested this and it works so that cat.display will launch the display window. Although I think I will continue to use other viewers.
source share