© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•2y ago•
1 reply
CGM

SpatieMediaLibraryFileUpload - Display is very slow

I'm allowing users to upload images. However, I want to keep a high quality version for future cropping.

How can I display a conversion (ie., thumbnail) in the field, but allow cropping of the original in the editor?

The reason this is important is that some users have images that are 10+mb and the editor is taking for ever to load on mobile. I don't need the full image unless the editor is actively open.

SpatieMediaLibraryFileUpload::make('user_photo')
  ->collection('user_photos')
  ->disk('tenant_photos')
  ->maxSize(12288)
  ->visibility('public')
  ->image()
  ->imageEditor()
  ->imageCropAspectRatio('2:3'),
SpatieMediaLibraryFileUpload::make('user_photo')
  ->collection('user_photos')
  ->disk('tenant_photos')
  ->maxSize(12288)
  ->visibility('public')
  ->image()
  ->imageEditor()
  ->imageCropAspectRatio('2:3'),


when I add
->conversion('thumb')
->conversion('thumb')


the editor/cropper modifies the thumbnail instead of the original, obliterating the image quality.
Filament banner
FilamentJoin
A powerful open source UI framework for Laravel • Build and ship admin panels & apps fast with Livewire
20,307Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

SpatieMediaLibraryFileUpload: Display original file name
FilamentFFilament / ❓┊help
3y ago
Very slow app
FilamentFFilament / ❓┊help
2y ago
very Slow The request is pending
FilamentFFilament / ❓┊help
2y ago
->fillForm is very slow in tests
FilamentFFilament / ❓┊help
3y ago