1. A method comprising: by one or more computing devices, receiving an image that corresponds to a first color space; and by one or more computing devices, creating, based on an approximation function, a color profile for transforming the image from the first color space to a second color space, wherein: the approximation function is determined by a polyline; the polyline comprises a number of line segments; and the polyline is separated from an ideal function curve for transforming the image by an error value that is within a pre-determined threshold.