From 94936efda8aa63563211eda07a5ade92abb32f7a Mon Sep 17 00:00:00 2001 From: Cristy Date: Wed, 6 Jul 2016 07:58:52 -0400 Subject: [PATCH] ... --- coders/tiff.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/coders/tiff.c b/coders/tiff.c index fa589d94f..8acce45d0 100644 --- a/coders/tiff.c +++ b/coders/tiff.c @@ -1299,9 +1299,6 @@ RestoreMSCWarning image->columns=(size_t) width; image->rows=(size_t) height; image->depth=(size_t) bits_per_sample; - status=SetImageExtent(image,image->columns,image->rows,exception); - if (status == MagickFalse) - return(DestroyImageList(image)); if (image->debug != MagickFalse) (void) LogMagickEvent(CoderEvent,GetMagickModule(),"Image depth: %.20g", (double) image->depth); @@ -1562,6 +1559,9 @@ RestoreMSCWarning } goto next_tiff_frame; } + status=SetImageExtent(image,image->columns,image->rows,exception); + if (status == MagickFalse) + return(DestroyImageList(image)); method=ReadGenericMethod; if (TIFFGetField(tiff,TIFFTAG_ROWSPERSTRIP,&rows_per_strip) == 1) { -- 2.40.0