Spatie Media Library Conversions

So I already have collections setup and have them automatically convert/crop to a particular resolution and currently handle png, jpg, and webp, but I I would also like to be able to accept HEIC and AVIF files. With that said though, I think i would prefer to just convert them all over to jpg before resizing. Shouldnt i be able to do something like so and then just referencing the registered collection at the spatie upload field? As far as I can see, latest versions of imagick support heic and avif.
    public function registerMediaCollections(): void
    {
        $this->addMediaCollection('additional')
            ->useDisk('s3')
            ->registerMediaConversions(function (Media $media) {
                $this
                    ->addMediaConversion('850w')
                    ->format(Manipulations::FORMAT_JPG)
                    ->fit(Manipulations::FIT_CROP, 850, 500)
                    ->background('dddddd');
            });
    }

and
SpatieMediaLibraryFileUpload::make('additional')
    ->collection('additional')
    ->acceptedFileTypes(
        ['image/png', 'image/jpeg', 'image/jpg', 'image/webp', 'image/bmp', 'image/heic', 'image/avif']
    )
    ->disk('s3')
    ->conversionsDisk('s3')
    ->visibility('public')
    ->multiple(),
Was this page helpful?