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]);