Search code examples
rubyimage-processingrmagick

How to get image type with RMagick?


I need to find the real type of images, as a lot of times they come with the wrong extension.

Is this possible with RMagick? How?


Solution

  • Solution:

    image.format
    
    #