@@ -299,7 +299,7 @@ public function runMaxResize(ImageInterface $image, int $width, int $height): Im
299
299
*/
300
300
public function runFillResize (ImageInterface $ image , int $ width , int $ height ): ImageInterface
301
301
{
302
- return $ image ->pad ($ width , $ height );
302
+ return $ image ->pad ($ width , $ height, ' transparent ' );
303
303
}
304
304
305
305
/**
@@ -313,7 +313,7 @@ public function runFillResize(ImageInterface $image, int $width, int $height): I
313
313
*/
314
314
public function runFillMaxResize (ImageInterface $ image , int $ width , int $ height ): ImageInterface
315
315
{
316
- return $ image ->contain ($ width , $ height );
316
+ return $ image ->contain ($ width , $ height, ' transparent ' );
317
317
}
318
318
319
319
/**
@@ -349,7 +349,7 @@ public function runCropResize(ImageInterface $image, int $width, int $height): I
349
349
350
350
[$ offset_x , $ offset_y ] = $ this ->resolveCropOffset ($ image , $ width , $ height );
351
351
352
- return $ image ->crop ($ width , $ height , $ offset_x , $ offset_y );
352
+ return $ image ->crop ($ width , $ height , $ offset_x , $ offset_y, ' transparent ' );
353
353
}
354
354
355
355
/**
0 commit comments