就像是:
img = Magick::Image.read(path).first hexVal = img.getHexValue
img = Magick::Image.read(path).first pix = img.scale(1,1) averageColor = pix.pixel_color(0,0)