Index: trunk/magic/remove/src/streaksio.c
===================================================================
--- trunk/magic/remove/src/streaksio.c	(revision 25209)
+++ trunk/magic/remove/src/streaksio.c	(revision 25226)
@@ -1236,8 +1236,10 @@
                 out->fits->options->bitpix = 0;
             }
+#endif
             if (!psFitsWriteImage(out->fits, in->header, in->image, 0, in->extname)) {
                 psError(PM_ERR_UNKNOWN, false, "failed to write image for extension %d\n", extnum);
                 streaksExit("", PS_EXIT_UNKNOWN_ERROR);
             }
+#ifdef SAVE_AND_RESTORE_COMPRESSION
             if (out->fits->options) {
                 out->fits->options->bitpix = bitpix;
