diff --git a/coders/rgf.c b/coders/rgf.c
index 5fe0da0..7c21407 100644
--- a/coders/rgf.c
+++ b/coders/rgf.c
@@ -340,18 +340,15 @@
assert(exception->signature == MagickSignature);
status=OpenBlob(image_info,image,WriteBinaryBlobMode,exception);
if (status == MagickFalse)
- return(status);
- if (IssRGBCompatibleColorspace(image->colorspace) == MagickFalse)
+ return(status);
(void) TransformImageColorspace(image,sRGBColorspace,exception);
if((image->columns > 255L) || (image->rows > 255L))
ThrowWriterException(ImageError,"Dimensions must be less than 255x255");
-
/*
Write header (just the image dimensions)
*/
(void) WriteBlobByte(image,image->columns & 0xff);
(void) WriteBlobByte(image,image->rows & 0xff);
-
/*
Convert MIFF to bit pixels.
*/