dup_bounds.width=dup_bounds.height=0; /* no dup, no pixel added */
if ( add_frames )
{
- dup_image=CloneImage(curr->previous,curr->previous->columns,
- curr->previous->rows,MagickTrue,exception);
+ dup_image=CloneImage(curr->previous,0,0,MagickTrue,exception);
if (dup_image == (Image *) NULL)
{
bounds=(RectangleInfo *) RelinquishMagickMemory(bounds);
/*
Now compare against a simple background disposal
*/
- bgnd_image=CloneImage(curr->previous,curr->previous->columns,
- curr->previous->rows,MagickTrue,exception);
+ bgnd_image=CloneImage(curr->previous,0,0,MagickTrue,exception);
if (bgnd_image == (Image *) NULL)
{
bounds=(RectangleInfo *) RelinquishMagickMemory(bounds);
bgnd_image=DestroyImage(bgnd_image);
if ( disposals[i-1] == NoneDispose )
{
- prev_image=CloneImage(curr->previous,curr->columns,
- curr->rows,MagickTrue,exception);
+ prev_image=ReferenceImage(curr->previous);
if (prev_image == (Image *) NULL)
{
bounds=(RectangleInfo *) RelinquishMagickMemory(bounds);