public static string AddFile(this IFileStorage storage, string extension, Stream fileData, bool fixColorProfile)
        {
            if (!fixColorProfile || fileData == null)
            {
                return(storage.AddFile(extension, fileData));
            }

            var fixedFilePath = ColorManagement.FixColorProfile(fileData);

            return(fixedFilePath == null?storage.AddFile(extension, fileData) : AddFixedFile(storage, fixedFilePath));
        }
        public static string AddFile(this IFileStorage storage, string filePath, bool fixColorProfile)
        {
            if (!fixColorProfile || filePath == null)
            {
                return(storage.AddFile(filePath));
            }

            var fixedFilePath = ColorManagement.FixColorProfile(filePath);

            return(fixedFilePath == null?storage.AddFile(filePath) : AddFixedFile(storage, fixedFilePath));
        }