wherein the generating step includes generating the profile using the colorimetric values under the colorimetric condition stored in the file when the type of the device is a device that handles light-source colors, and generating the profile using the colorimetric values under the viewing condition obtained in the converting step when the type of the device is a device that handles object colors.