ext/RMagick/rmimage.c in rmagick-2.7.1 vs ext/RMagick/rmimage.c in rmagick-2.7.2

- old
+ new

@@ -1,6 +1,6 @@ -/* $Id: rmimage.c,v 1.328 2008/10/30 22:23:39 rmagick Exp $ */ +/* $Id: rmimage.c,v 1.329 2008/11/13 00:04:26 rmagick Exp $ */ /*============================================================================\ | Copyright (C) 2008 by Timothy P. Hunter | Name: rmimage.c | Author: Tim Hunter | Purpose: Image class method definitions for RMagick @@ -10007,10 +10007,12 @@ rb_raise(rb_eRuntimeError, "Can't convert %lux%lu %.4s image to a blob" , image->columns, image->rows, magick_info->name); } } + rm_sync_image_options(image, info); + blob = ImageToBlob(info, image, &length, &exception); CHECK_EXCEPTION() (void) DestroyExceptionInfo(&exception); @@ -10996,9 +10998,11 @@ { add_format_prefix(info, file); strcpy(image->filename, info->filename); SetImageInfoFile(info, NULL); } + + rm_sync_image_options(image, info); info->adjoin = MagickFalse; (void) WriteImage(info, image); rm_check_image_exception(image, RetainOnError);