RMagickで画像がRGBかCMYKかを調べる require 'rubygems' require 'RMagick' img = Magick::ImageList.new("画像パス") img.colorspace => RGBColorspace=1 または => CMYKColorspace=12 が表示される CMYKをRGBに変換するには img.colorspace = Magick::RGBColorspace img= image.negate img.write("変換後画像パス") ※RMagick2