diff --git a/src/Definitions/MediaConversionFFmpeg.php b/src/Definitions/MediaConversionFFmpeg.php index 9afd2ed..afdc729 100644 --- a/src/Definitions/MediaConversionFFmpeg.php +++ b/src/Definitions/MediaConversionFFmpeg.php @@ -16,7 +16,7 @@ class MediaConversionFFmpeg extends MediaConversionDefinition { /** - * @param Closure(MediaExporter $ffmpeg):void $manipulate + * @param Closure(MediaExporter $ffmpeg, Media $media, ?MediaConversion $parent):void $manipulate * @param Closure(Media $media, ?MediaConversion $parent):string $fileName */ public function __construct( @@ -75,7 +75,7 @@ public function handle( ->open($file) ->export(); - $manipulate($ffmpeg); + $manipulate($ffmpeg, $media, $parent); $ffmpeg->save($newFile); diff --git a/src/Definitions/MediaConversionSpatieImage.php b/src/Definitions/MediaConversionSpatieImage.php index 9728b68..310bcb1 100644 --- a/src/Definitions/MediaConversionSpatieImage.php +++ b/src/Definitions/MediaConversionSpatieImage.php @@ -16,7 +16,7 @@ class MediaConversionSpatieImage extends MediaConversionDefinition { /** - * @param Closure(Image $image):void $manipulate + * @param Closure(Image $image, Media $media, ?MediaConversion $parent):void $manipulate * @param Closure(Media $media, ?MediaConversion $parent):string $fileName */ public function __construct( @@ -73,7 +73,7 @@ public function handle( $image = Image::load($filesystem->path($file)); - $manipulate($image); + $manipulate($image, $media, $parent); $image->save($filesystem->path($newFile));