Add file conversion to jpeg
continuous-integration/drone/push Build is failing Details

This commit is contained in:
philipp lang 2024-07-13 19:49:50 +02:00
parent d4057ff08f
commit 74867cb09f
2 changed files with 2 additions and 1 deletions

View File

@ -71,6 +71,7 @@ class Form extends Model implements HasMedia
->singleFile()
->maxWidth(fn () => 500)
->forceFileName(fn (Form $model, string $name) => $model->slug)
->convert(fn () => 'jpg')
->registerMediaConversions(function (Media $media) {
$this->addMediaConversion('square')->fit(Manipulations::FIT_CROP, 400, 400);
});

@ -1 +1 @@
Subproject commit d2f7f16e88fc3062573fe38e0e9ddef6f2b0ea55
Subproject commit 59d7647720ab2791e954944b38c986143db9de8e