Author: abrander
Date: 2009-07-05 10:29:48 +0200 (Sun, 05 Jul 2009)
New Revision: 2548
Modified:
trunk/src/rs-batch.c
Log:
[289] A quick fix to assign ICC profiles in batch.
Modified: trunk/src/rs-batch.c
===================================================================
--- trunk/src/rs-batch.c 2009-07-05 07:51:24 UTC (rev 2547)
+++ trunk/src/rs-batch.c 2009-07-05 08:29:48 UTC (rev 2548)
@@ -402,6 +402,31 @@
RSFilter *fbasic_render = rs_filter_new("RSBasicRender", fdenoise);
RSFilter *fend = fbasic_render;
+ /* FIXME: This is just a temporary hack to make batch work */
+ {
+ RSIccProfile *profile = NULL;
+ gchar *profile_filename =
rs_conf_get_cms_profile(CMS_PROFILE_INPUT);
+ if (profile_filename)
+ {
+ profile =
rs_icc_profile_new_from_file(profile_filename);
+ g_free(profile_filename);
+ }
+ if (!profile)
+ profile = rs_icc_profile_new_from_file(PACKAGE_DATA_DIR "/"
PACKAGE "/profiles/generic_camera_profile.icc");
+ g_object_set(finput, "icc-profile", profile, NULL);
+ g_object_unref(profile);
+
+ profile_filename = rs_conf_get_cms_profile(CMS_PROFILE_EXPORT);
+ if (profile_filename)
+ {
+ profile =
rs_icc_profile_new_from_file(profile_filename);
+ g_free(profile_filename);
+ }
+ else
+ profile = rs_icc_profile_new_from_file(PACKAGE_DATA_DIR
"/" PACKAGE "/profiles/sRGB.icc");
+ g_object_set(fbasic_render, "icc-profile", profile, NULL);
+ g_object_unref(profile);
+ }
window = gtk_window_new(GTK_WINDOW_TOPLEVEL);
gtk_window_set_transient_for(GTK_WINDOW(window), rawstudio_window);
gtk_window_set_title(GTK_WINDOW(window), _("Processing photos"));
_______________________________________________
Rawstudio-commit mailing list
[email protected]
http://rawstudio.org/cgi-bin/mailman/listinfo/rawstudio-commit