@huacnlee 大大看看是否有需要 check_img = MiniMagick::Image.new("#{decompression_temp_dir}/#{file}") check_res = false begin check_res = check_img.valid? rescue Exception => e check_image_error += e.message end