THUMBNAIL_INSET in Imagine not work.

THUMBNAIL_INSET in Imagine not work. Size does not match Box and not background.


Imagine\Image\Box Object ( [width:Imagine\Image\Box:private] => 525 [height:Imagine\Image\Box:private] => 393 )


$imagine = Image::getImagine()

                ->open( $path )->thumbnail($sizeBox,ImageInterface::THUMBNAIL_INSET);

            $imagine->thumbnailBackgroundColor ='red';

            $imagine->save( $pathMini , ['quality' => 90]);

Decision. But color not change


     $imagine = Image::thumbnail(  $path , 300, 300, $mode = \Imagine\Image\ManipulatorInterface::THUMBNAIL_INSET );

            $imagine->thumbnailBackgroundColor ='5effbf';

            $imagine->save( $pathMini , ['quality' => 90]);

Image::$thumbnailBackgroundColor =’#0000ff’;