Index: /branches/eam_branches/20091201/ippScripts/scripts/magic_process.pl
===================================================================
--- /branches/eam_branches/20091201/ippScripts/scripts/magic_process.pl	(revision 26834)
+++ /branches/eam_branches/20091201/ippScripts/scripts/magic_process.pl	(revision 26835)
@@ -290,7 +290,7 @@
     my $baseroot = shift;
 
-    unless ($VerifyStreaks) { 
-	print STDERR "skipping VerifyStreaks\n";
-	return 1;
+    unless ($VerifyStreaks) {
+        print STDERR "skipping VerifyStreaks\n";
+        return 1;
     }
 
@@ -300,21 +300,25 @@
 
     my($status) = system ("mkdir -p $outdir");
-    if ($status) { 
-	print STDERR "failed to create output directory $outdir\n"; 
-	return 1;
-    }
+    if ($status) {
+        print STDERR "failed to create output directory $outdir\n";
+        return 1;
+    }
+
+    my $FILE;
 
     my @files = <$baseroot.*.clusters>;
-    unless (OPEN (FILE, ">$outdir/clusters.list")) {
-	print "failed to create cluster file $outdir/clusters.list\n"; 
-	return 1;
+
+    unless (open ($FILE, ">$outdir/clusters.list")) {
+        print "failed to create cluster file $outdir/clusters.list\n";
+        return 1;
     }
     foreach my $file (@files) {
-	print FILE "$file\n";
-    }
-    close (FILE);
-    if ($status) { 
-	print "failed to create cluster file $outdir/clusters.list\n"; 
-	return 1;
+        $file =~ s|.clusters$||;
+        print $FILE "$file\n";
+    }
+    close ($FILE);
+    if ($status) {
+        print "failed to create cluster file $outdir/clusters.list\n";
+        return 1;
     }
 
@@ -322,8 +326,8 @@
 
     my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) =
-	run(command => $command, verbose => $verbose);
+        run(command => $command, verbose => $verbose);
     unless ($success) {
-	print "failed to run VerifyStreaks:\n stderr: $stderr_buff\n stdout: $stdout_buff"; 
-	return 1;
+        print "failed to run VerifyStreaks:\n";
+        return 1;
     }
 
Index: /branches/eam_branches/20091201/ippconfig/recipes/filerules-mef.mdc
===================================================================
--- /branches/eam_branches/20091201/ippconfig/recipes/filerules-mef.mdc	(revision 26834)
+++ /branches/eam_branches/20091201/ippconfig/recipes/filerules-mef.mdc	(revision 26835)
@@ -302,4 +302,9 @@
 CENSOR.OUTPUT           OUTPUT {OUTPUT}.smf                      CMF       NONE       FPA        TRUE      MEF
 
+MAGIC.ORIGINAL.PNG      OUTPUT {OUTPUT}_original.png             JPEG      NONE       FPA        TRUE      NONE
+MAGIC.RESIDUAL.PNG      OUTPUT {OUTPUT}_residual.png             JPEG      NONE       FPA        TRUE      NONE
+MAGIC.MASK.PNG          OUTPUT {OUTPUT}_mask.png                 JPEG      NONE       FPA        TRUE      NONE
+MAGIC.DUPLICATE.PNG     OUTPUT {OUTPUT}_duplicate.png            JPEG      NONE       FPA        TRUE      NONE
+
 PPSMOOTH.OUTPUT          OUTPUT {OUTPUT}.{CHIP.NAME}.fits        IMAGE     NONE       CHIP       TRUE      MEF
 PPSMOOTH.OUTPUT.MASK     OUTPUT {OUTPUT}.{CHIP.NAME}.mk.fits     MASK      NONE       CHIP       TRUE      MEF
Index: /branches/eam_branches/20091201/ippconfig/recipes/filerules-simple.mdc
===================================================================
--- /branches/eam_branches/20091201/ippconfig/recipes/filerules-simple.mdc	(revision 26834)
+++ /branches/eam_branches/20091201/ippconfig/recipes/filerules-simple.mdc	(revision 26835)
@@ -250,4 +250,9 @@
 CENSOR.OUTPUT           OUTPUT {OUTPUT}.smf          CMF       NONE       FPA        TRUE      MEF
 
+MAGIC.ORIGINAL.PNG      OUTPUT {OUTPUT}_original.png             JPEG      NONE       FPA        TRUE      NONE
+MAGIC.RESIDUAL.PNG      OUTPUT {OUTPUT}_residual.png             JPEG      NONE       FPA        TRUE      NONE
+MAGIC.MASK.PNG          OUTPUT {OUTPUT}_mask.png                 JPEG      NONE       FPA        TRUE      NONE
+MAGIC.DUPLICATE.PNG     OUTPUT {OUTPUT}_duplicate.png            JPEG      NONE       FPA        TRUE      NONE
+
 PPSMOOTH.OUTPUT          OUTPUT {OUTPUT}.fits        IMAGE     NONE       FPA        TRUE      SIMPLE
 PPSMOOTH.OUTPUT.MASK     OUTPUT {OUTPUT}.mk.fits     MASK      NONE       FPA        TRUE      SIMPLE
Index: /branches/eam_branches/20091201/ippconfig/recipes/filerules-split.mdc
===================================================================
--- /branches/eam_branches/20091201/ippconfig/recipes/filerules-split.mdc	(revision 26834)
+++ /branches/eam_branches/20091201/ippconfig/recipes/filerules-split.mdc	(revision 26835)
@@ -269,4 +269,9 @@
 CENSOR.OUTPUT           OUTPUT {OUTPUT}.smf                      CMF       NONE       FPA        TRUE      MEF
 
+MAGIC.ORIGINAL.PNG      OUTPUT {OUTPUT}_original.png             JPEG      NONE       FPA        TRUE      NONE
+MAGIC.RESIDUAL.PNG      OUTPUT {OUTPUT}_residual.png             JPEG      NONE       FPA        TRUE      NONE
+MAGIC.MASK.PNG          OUTPUT {OUTPUT}_mask.png                 JPEG      NONE       FPA        TRUE      NONE
+MAGIC.DUPLICATE.PNG     OUTPUT {OUTPUT}_duplicate.png            JPEG      NONE       FPA        TRUE      NONE
+
 PPSMOOTH.OUTPUT          OUTPUT {OUTPUT}.{CHIP.NAME}.fits        IMAGE     NONE       CHIP       TRUE      MEF
 PPSMOOTH.OUTPUT.MASK     OUTPUT {OUTPUT}.{CHIP.NAME}.mk.fits     MASK      NONE       CHIP       TRUE      MEF
