|
22 | 22 | #include "common/debug.h" |
23 | 23 | #include "common/imagebuf.h" |
24 | 24 | #include "common/matrices.h" |
| 25 | +#include "control/control.h" |
25 | 26 | #include "develop/imageop.h" |
26 | 27 | #include "develop/imageop_math.h" |
27 | 28 | #include "develop/pixelpipe.h" |
@@ -878,6 +879,9 @@ dt_ioppr_set_pipe_work_profile_info(struct dt_develop_t *dev, |
878 | 879 | dt_iop_order_iccprofile_info_t *profile_info = |
879 | 880 | dt_ioppr_add_profile_info_to_list(dev, type, filename, intent); |
880 | 881 |
|
| 882 | + if(!profile_info && (pipe->type & DT_DEV_PIXELPIPE_PREVIEW) && (type == DT_COLORSPACE_FILE)) |
| 883 | + dt_control_log(_("work icc profile '%s' missing"), filename); |
| 884 | + |
881 | 885 | if(profile_info == NULL |
882 | 886 | || !dt_is_valid_colormatrix(profile_info->matrix_in[0][0]) |
883 | 887 | || !dt_is_valid_colormatrix(profile_info->matrix_out[0][0])) |
@@ -906,6 +910,9 @@ dt_ioppr_set_pipe_input_profile_info(struct dt_develop_t *dev, |
906 | 910 |
|
907 | 911 | if(profile_info == NULL) |
908 | 912 | { |
| 913 | + if((pipe->type & DT_DEV_PIXELPIPE_PREVIEW) && (type == DT_COLORSPACE_FILE)) |
| 914 | + dt_control_log(_("input icc profile '%s' missing"), filename); |
| 915 | + |
909 | 916 | dt_print(DT_DEBUG_PIPE, |
910 | 917 | "[dt_ioppr_set_pipe_input_profile_info] profile `%s' in `%s'" |
911 | 918 | " replaced by linear Rec2020", |
@@ -939,6 +946,9 @@ dt_ioppr_set_pipe_output_profile_info(struct dt_develop_t *dev, |
939 | 946 | dt_iop_order_iccprofile_info_t *profile_info = |
940 | 947 | dt_ioppr_add_profile_info_to_list(dev, type, filename, intent); |
941 | 948 |
|
| 949 | + if(!profile_info && (pipe->type & DT_DEV_PIXELPIPE_PREVIEW) && (type == DT_COLORSPACE_FILE)) |
| 950 | + dt_control_log(_("output icc profile '%s' missing"), filename); |
| 951 | + |
942 | 952 | if(profile_info == NULL |
943 | 953 | || !dt_is_valid_colormatrix(profile_info->matrix_in[0][0]) |
944 | 954 | || !dt_is_valid_colormatrix(profile_info->matrix_out[0][0])) |
|
0 commit comments