Skip to content

Commit

Permalink
Use webp as default
Browse files Browse the repository at this point in the history
  • Loading branch information
AngryMoustache committed Apr 5, 2024
1 parent c83b5d6 commit d0f0d44
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion resources/views/livewire/formatter-modal.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ class="py-8 w-full flex-col gap-2"
width: this.currentFormat.width,
height: this.currentFormat.height,
})
.toDataURL('{{ $forcedMimeType ?? "image/jpg" }}'),
.toDataURL('{{ $forcedMimeType ?? "image/webp" }}'),
})
},
setFormat (key) {
Expand Down
2 changes: 1 addition & 1 deletion src/Livewire/FormatterModal.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public function setAttachment(string $uuid, ?array $formats = null)
$this->attachment = Attachment::find($uuid);

$this->forcedMimeType = config(
'filament-media-library.force-extension.mime-type',
'filament-media-library.force-format-extension.mime-type',
$this->attachment->mime_type,
);

Expand Down

0 comments on commit d0f0d44

Please sign in to comment.