Commit 5ae39173 authored by cristy's avatar cristy

--no commit message

--no commit message
parent 337f6b59
......@@ -5469,12 +5469,20 @@ MagickExport MagickBooleanType XMakeImage(Display *display,
Resize image.
*/
resize_image=NewImageList();
if (window->pixel_info->colors != 0)
resize_image=SampleImage(window->image,width,height,
&image->exception);
if ((window->pixel_info->colors == 0) &&
(window->image->rows > (unsigned long) XDisplayHeight(display,window->screen)) &&
(window->image->columns > (unsigned long) XDisplayWidth(display,window->screen)))
resize_image=ResizeImage(window->image,width,height,
image->filter,image->blur,&image->exception);
else
resize_image=ThumbnailImage(window->image,width,height,
&image->exception);
{
if (window->image->storage_class == PseudoClass)
resize_image=SampleImage(window->image,width,height,
&image->exception);
else
resize_image=ThumbnailImage(window->image,width,height,
&image->exception);
}
if (resize_image != (Image *) NULL)
{
if (window->image != image)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment