Index: trunk/ippScripts/scripts/detrend_norm_apply.pl
===================================================================
--- trunk/ippScripts/scripts/detrend_norm_apply.pl	(revision 18360)
+++ trunk/ippScripts/scripts/detrend_norm_apply.pl	(revision 18361)
@@ -125,4 +125,13 @@
 # Run normalisation
 unless ($no_op) {
+
+    # we cannot use ppImage to load a normalized mask : just copy it and build the jpeg images
+    if ($det_type_real eq 'mask') {
+	$RECIPE_PPIMAGE = 'PPIMAGE_BIN';
+	my $input_real = $ipprc->file_resolve($input_uri, 0);
+	my $output_real = $ipprc->file_resolve($output, 1);
+	system ("cp $input_real $output_real");
+    }
+
     my $command = "$ppImage -file $input_uri $outroot";
     $command .= " -norm $value -stats $statsName";
