[Rawstudio-commit] r3222 - trunk/src

Anders Kvist anders at kvistmail.dk
Sun Feb 14 16:07:41 CET 2010


Author: akv
Date: 2010-02-14 16:07:41 +0100 (Sun, 14 Feb 2010)
New Revision: 3222

Modified:
   trunk/src/rs-save-dialog.c
Log:
Use ICC profile if present when exporting.

Modified: trunk/src/rs-save-dialog.c
===================================================================
--- trunk/src/rs-save-dialog.c	2010-02-14 14:40:10 UTC (rev 3221)
+++ trunk/src/rs-save-dialog.c	2010-02-14 15:07:41 UTC (rev 3222)
@@ -264,12 +264,19 @@
 
 	actual_scale = ((gdouble) dialog->save_width / (gdouble) rs_filter_get_width(dialog->fcrop));
 
-	/* Set DCP profile */
+	/* Set input profile */
 	RSDcpFile *dcp_profile  = rs_photo_get_dcp_profile(dialog->photo);
+	RSIccProfile *icc_profile  = rs_photo_get_icc_profile(dialog->photo);
+
 	if (dcp_profile != NULL)
 	{
 		g_object_set(dialog->fdcp, "profile", dcp_profile, NULL);
 	}
+	if (icc_profile != NULL)
+	{
+		RSColorSpace *icc_space = rs_color_space_icc_new_from_icc(icc_profile);
+		g_object_set(dialog->finput, "color-space", icc_space, NULL);
+	}
 
 	/* Look up lens */
 	RSMetadata *meta = rs_photo_get_metadata(dialog->photo);




More information about the Rawstudio-commit mailing list