From 74867cb09f8af87f604e7c79f22034aede65322f Mon Sep 17 00:00:00 2001 From: philipp lang Date: Sat, 13 Jul 2024 19:49:50 +0200 Subject: [PATCH] Add file conversion to jpeg --- app/Form/Models/Form.php | 1 + packages/medialibrary-helper | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/app/Form/Models/Form.php b/app/Form/Models/Form.php index 5b3bb34b..b227ebdb 100644 --- a/app/Form/Models/Form.php +++ b/app/Form/Models/Form.php @@ -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); }); diff --git a/packages/medialibrary-helper b/packages/medialibrary-helper index d2f7f16e..59d76477 160000 --- a/packages/medialibrary-helper +++ b/packages/medialibrary-helper @@ -1 +1 @@ -Subproject commit d2f7f16e88fc3062573fe38e0e9ddef6f2b0ea55 +Subproject commit 59d7647720ab2791e954944b38c986143db9de8e